Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
VB6....Nul value in text box
Name: gardenair Date: February 13, 2003 at 22:20:48 Pacific OS: win98 CPU/Ram: 166
Comment:
I have two text boxes in Visual Basic6 .How can i restrict the user if he press enter key in the text box to switch to next text box when Text1 is enpty . NUL value... My code is as under please can you tell me how can i change it if the the user press enter key without input in the text box1.
Private Sub Text1_KeyPress(KeyAscii As Integer) If (KeyAscii = 13) Then ' For Enter key Text2.Enabled = True Text2.SetFocus ' Cursor will move to text2 KeyAscii = 0 ' Eliminating the Beep from System Speaker Exit Sub Else KeyAscii = 0 Beep End If End Sub
Summary: My problem is that i have two text boxes to write input in it. i have restricted the user to put characters in the valid text boxes.If the user input his name then he will switch to the next text bo...
Summary: I want to save a value in combo box when i press Save button .Iam using ADO .when i press the save button vb shows an error at this line rec.Fields(0) = Combo1.AddItem add which is a systex error. ...