![]() |
| ||
| enter key Hello :) Iam using windows application, I want to know how can I move from textbox1 to textbox2 through the tab control key or enter key.. |
| ||
| Re: enter key or you could just use the mouse and position the cursor in which ever text box you want? |
| ||
| Re: enter key Try this: Private Sub TextBox1_Keydown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles TextBox1.KeyDown, TextBox2.KeyDown |
| ||
| Re: enter key 1)the tab works by default right? 2)I added the enter code but still when i start my program the focus is always at the 2nd text box, so what can i do? 3) can i move between textboxes using the ASCII code 13? how? thanks : ) |
| ||
| Re: enter key You don't want to do this. The "enter" key is universally used to submit a form, or perform a default action. Altering it is a major violation of the User Model. |
| ||
| Re: enter key sorry but i didn't understand ;/ ,, what i meant is using enter key to move from one text box to another.. and how I can do it.. I'm very new to programming. . :) |
| ||
| Re: enter key Quote:
But using enter to do the same would be frowned upon. |
| ||
| Re: enter key 1 Attachment(s) see attachment |
| ||
| Re: enter key now that i have 3 text boxes .. when i type numbers then press enter the numbers will be cleared?? and that doesn't happen with 2nd and 3rd number? |
| ||
| Re: enter key Huh? When you press the enter button on the keyboard you mean. Do you have any code? |
| All times are GMT -4. The time now is 6:19 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC