enter key

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2006
Posts: 13
Reputation: vb_learner is an unknown quantity at this point 
Solved Threads: 0
vb_learner vb_learner is offline Offline
Newbie Poster

Re: enter key

 
0
  #11
Nov 14th, 2006
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?

  1. Case 13
  2. If sender Is txtA1 Then
  3. txtA2.Focus()
  4. ElseIf sender Is txtA2 Then
  5. txtA3.Focus()
  6. Elseif sender Is txtA3
  7. txtA1.focus()
  8. End If
Last edited by tgreer; Nov 14th, 2006 at 3:27 pm. Reason: Removed weird formatting, added code tags.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: enter key

 
0
  #12
Nov 14th, 2006
Disappear?

To clear a txt box I just use:

  1. txtBox.Text = "" 'Clear text field
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 1
Reputation: Rasb23 is an unknown quantity at this point 
Solved Threads: 0
Rasb23's Avatar
Rasb23 Rasb23 is offline Offline
Newbie Poster

Re: enter key

 
0
  #13
Jun 3rd, 2008
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC