Topics
-
-
- *Experts*
- 11 replies
- 1.9k views
On a form of mine I have a textbox in which a user places his password, below this box is a button that says Login. I would like to make it so that the user can just type in their password and either hit that button or just hit enter. How can I make it use the enter key as well from that box? Also when the form loads... How do I make the cursor default right to inside that textbox so they do not have to click in it before typing? Thank you!!!!!! :D
Last reply by pelikan, -
-
- 3 replies
- 1.5k views
I have a GroupBox which contains two DateTimePickers. In the GroupBox validating event, I'm trying to check to see whether one DateTimePicker value is greater than the other and then set an ErrorProvider. The problem I'm facing is that when I click off the DateTimePicker to somewhere outside it's parent groupbox, the GroupBox Validating event gets fired before the DateTimePicker Control has been updated. I.e. if I interrogate the DateTimePicker all the properties still contain the old values, even the 'Text'. This obviously makes the validation a bit difficult! I can't seem to find an event on the GroupBox that does get fired after the DateTimePicker is updated... …
Last reply by gushie, -
- 2 replies
- 2.5k views
I dont know how to do this. I want my program to copy an acess database to a folder, then create a DNS so that lets say... php can have acess to it. Is there a way to do this directly from C#?
Last reply by Shurikn, -
- 4 replies
- 2.4k views
ok... vb is really not my favorite language, but I fond a code snipet on the web to create an odbc system dns... in VB so i tough I would at lest copy it to .net and try to make it work there before I try to change it to c#... what I tryed seems to compile but im really not sure about the first 3 lines... and it does not work so theres probably an error somewhere... original code as fond on http://home.pacbell.net/cetta/create-sys-DNS.htm Option Explicit Private Declare Function SQLConfigDataSource Lib "ODBCCP32.DLL" _ (ByVal hwndParent As Long, ByVal fRequest As Long, _ ByVal lpszDriver As String, ByVal lpszAttributes As String) _ As Long Private Const ODBC_AD…
Last reply by Shurikn, -
- 2 replies
- 795 views
Hi, I wanted to create multithreads in c++ and use it in VB.NET, so I was thinking that I can wrap the c++ code and use it in VB.NET (like any other dll). I have a function (functionexample()) in c++ that creates another thread (which is linked to another function, interrupt()). So I wanted to expose functionexample() in vb.net. Is all this possible ? :confused:
Last reply by nima1985, -
-
- Leaders
- 2 replies
- 1.2k views
I have a user that has writen a VB App using a timer to control events. They require millisecond accuracy for everything to work correctly. They are currently using a laptop (dell latitude c640) with speedstep set to "maximum performance". They say this has been working fine, but there can be issues if the laptop processor slows down, and therefore is sending fewer clock steps per second. They are planning on upgrading to a dell latitude d505 laptop controlled by the speedstep feature. So, the question is, does the VB timer depend on the clock step? And if so, is there a way to deal with the slowing down of the clock step? Or is there an alternate solution (VB or…
Last reply by wainwrightwt, -
-
-
- Leaders
- 1 reply
- 1.1k views
I need to convert the picture on the panel to bytes. I did that but it works only for the backgroungimage of a panel. in my program I use 3ds max to draw on the panel I need to convert the picture on the panel to bytes this is the function I use to get the bytes of the backgroungimage of the panel private void fun() { pna1.BackgroundImage.Save("m"); //m is the name of the file bm = new Bitmap("m"); //the size of the panel is 240*160 byte [,] matrix= new byte [240,160]; byte red=0, green=0, blue=0; byte [] test=new byte [1]; for (int y=0; y < 160; y++) { for (int x =0; x < 240; x++) { Color u=bm.GetPixel (x ,y); //I need only one byte represe…
Last reply by Iceplug, -
-
-
- Leaders
- 3 replies
- 704 views
Can anyone help me understand this please. I am currently using a listview control created by Glacial Components (very good control). The problem is that I don't understand an answer to a problem I was given by them why something would not work. And as it seems like a more general vb.net question I'd thought i'd try here. Below is my posts and there reply: Question: I have tried the following but it seems to be giving an error and I can't see why?? Dim ptx As Integer Dim pty As Integer ptx = Me.lstDispDates.MousePosition.X pty = Me.lstDispDates.MousePosition.Y Me.lstDispDates.InterpretCoords(ptx, pty).Item.Text = "" Answer: what error is it giving y…
Last reply by Iceplug, -
-
- 2 replies
- 1k views
Hi Can anybody explain why the following exception occurs Microsoft OLE DB Provider for SQL Server error '80040e10' No value given for one or more required parameters. /somepage.asp line 22;
Last reply by Afraits, -
-
- Moderators
- 2 replies
- 1.2k views
If u drag an Image control from the toolbox, you can easily set it's width / height from the properties list, but how can you achieve this from code view? I tried image.width.parse("100px") but it doesn't work :(
Last reply by PROKA, -
-
- 3 replies
- 1.1k views
hi, i face some problem in using rowfilter for visual basic.net. As i know, if the string contains either [ or ], then these two characters must be escaped in square bracket like [[] or []]. for example, if the string is "hello[test]", then it must be written as "hello[[]test[]]". Now, i face the problem when the string contains #. Do you know the escape character for #? Please help me!!!!! Thank you. From, Ooi Aik Heng
Last reply by jmcilhinney, -
- 2 replies
- 1.2k views
Hi, It�s been a while since I posted here� I have been away from programming for a while. I have a problem with a data bound combo box. I included the forms load event where I do all the bindings. I have a form with a combo box cmbTVARates and 2 textboxes txtValue and txtName I use the combo box to select a record but I don�t edit in it. The data is send to the 2 textboxes where I edit the data and then save it. This works like a charm but while the data is saved to the datatable and even saved to the database, the combo box is not updated with the new names and added rows. I have tried breaking and restoring data bindings, call refresh, update or even inv…
Last reply by Napivo1972, -
- 2 replies
- 1.1k views
Hey guys i'm trying to achieve this in ASP.NET 1.1, dynamically populating my page with webcontrols into a table, however, i only want the page to have like 5 webcontrols in the table in each page, and i want to have this little page numbering like most website does, see attachment, so how do i achieve this, i'm a n00b at this, thanks guys.
Last reply by Winston, -
- 14 replies
- 1.4k views
Is it possible to display a window inside another window so that when I drag the main window all the other attached windows will be moved too? Plus, what about showing a window inside a panel for example?
Last reply by jmcilhinney, -
- 10 replies
- 978 views
Hi all, I would like to know, how do I create a form within a form, say for example I have created a main form, which contains all the controls, and also, some other forms that is within the application, all the maximization, minimization, resizing are all happened in the main form. Thanks PlayKid
Last reply by jmcilhinney, -
- 1 reply
- 2.7k views
I have a windows app, and at one point in the code, if a condition is met, the application exits. However, I found that this was not the case, and noticed that Application.AllowQuit was set to false. What could be causing this?
Last reply by DavidTruax, -
- 1 reply
- 739 views
So I started my VS today (1.1 Professional) and as soon as the window opened I got 'Element not found' error, once IDE was done initializing and start page showed up got same error. Hmmm... So I decided to do a new class library, while loading got 'Catastrophic Failure' error...IDE didn't crash though, however the new project had no references. I checked event log and there was nothing in there that had happened while these errors occured. Any ideas where I can look for an error log or things to check before I reinstall? EDIT: I do have Beta 2 loaded also...both have been playing nicely together for sometime now and last time I was working everything worked great.
Last reply by FZelle, -
- 3 replies
- 1.1k views
hi all! is there anyway to connect, i mean to work with external instuments using c#?? (like if i want to build something that will turn on a light that is connected to a USB port....or to connected to the COM1\2\ or Parrallel???) 10x in advance. p.s: i dont want to know,i just want to know if its possible.
Last reply by FZelle, -
- 1 reply
- 2.2k views
I'm trying to use SQLite iwith c#, the autoincreement attribute for a field in primary key seems not working properly :-\ the code is //Globals SQLiteClient db; //.....creating table db.Execute("CREATE TABLE tblProva (id INT AUTOINCREMENT ,name VARCHAR( 255 ) NOT NULL ,PRIMARY KEY ( id ) ) "); //.....inserting row db.Execute("INSERT INTO tblProva (nome) VALUES ('ciao')"); //..then the select SQLiteResultSet results; results = db.Execute("SELECT * FROM tblProva "); foreach (ArrayList arr in results.Rows) { foreach(object j in arr) Console.Write("\t" + Convert.ToString(j) ); Console.WriteLine(); } //but it doesn't insert an autoincr…
Last reply by FZelle, -
- 6 replies
- 1.6k views
Does anybody have a clean way to manage relative links in an application that has various levels of directories? I'd like to .... 1. Keep all of the my images in applicationroot/images and be able to get to them easily no matter how deep I am in the application (deep meaning directory level). 2. Keep my application code in different applicationroot/modules/modulename directories and be able to navigate easily between them.
Last reply by bri189a,
-
Who's Online 0 Members, 0 Anonymous, 60 Guests (See full list)
- There are no registered users currently online