| | |
enter key
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2006
Posts: 13
Reputation:
Solved Threads: 0
well,
lets say i have 3 textboxes, i entered a value in the 1st box then i press enter, the value will disappear
then the cursor will move to the 2nd box, but the value i type in it doesn't disappear?
lets say i have 3 textboxes, i entered a value in the 1st box then i press enter, the value will disappear
then the cursor will move to the 2nd box, but the value i type in it doesn't disappear?
VB.NET Syntax (Toggle Plain Text)
Case 13 If sender Is txtA1 Then txtA2.Focus() ElseIf sender Is txtA2 Then txtA3.Focus() Elseif sender Is txtA3 txtA1.focus() End If
Last edited by tgreer; Nov 14th, 2006 at 3:27 pm. Reason: Removed weird formatting, added code tags.
Disappear?
To clear a txt box I just use:
To clear a txt box I just use:
vb Syntax (Toggle Plain Text)
txtBox.Text = "" 'Clear text field
*Voted best profile in the world*
I agree with iamthwee! You should not use the enter for simple textbox navigation. Hitting the enter key is like hitting "finished" for having it as anything but submit is a big faux pas. You should set it up with tab. Click on the texbox and open the properties window. Use TabStop to enable or disable it in the tab order. Use "TabIndex" to give it a tab number, 1's the first 2's the second and so on.
I would not use enter if I was you cause if anyone was to use the program they'd fill in the blanks hit enter just to see focus change. They'll be confused.
Rasb
I would not use enter if I was you cause if anyone was to use the program they'd fill in the blanks hit enter just to see focus change. They'll be confused.
Rasb
![]() |
Similar Threads
- Capture the Enter Key in an Edit Control (C++)
- Problem with Keyboard Event <Enter> Key (JavaScript / DHTML / AJAX)
- CAPS LOCK Key (Visual Basic 4 / 5 / 6)
- win98: had no product key now can't uninstall (Windows 95 / 98 / Me)
Other Threads in the VB.NET Forum
- Previous Thread: System Usage Administration - Internet cafe management
- Next Thread: Compare 2 Tables - Return Rows VB 2008
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 30minutes 2005 2008 access account application arithmetic array arrays basic binary bing button buttons c# center check checkbox code combobox component connectionstring convert crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images inline insert intel internet listview mobile monitor ms net networking output passingparameters peertopeervideostreaming picturebox picturebox1 plugin port print printing problem problemwithinstallation project reports" save searchbox searchvb.net select serial server soap sorting table tcp text textbox timer toolbox trim update updown user vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf






