|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Enter Key and tab
Hi,
I am new to VB. Is there a way to write an even procedure in VB. The thing I need to achieve is, I have some text boxes in a form and when I enter a value in one text box and press enter key, I need to accept the value in a variable and the cursor should go to the next text box. How could I achieve this? --meetme |
|
#2
|
|||
|
|||
|
You can use the keypress event on a textbox, check for a key value of 13, and if 13 move the focus to a different control.
|
|
#3
|
|||
|
|||
|
Thanks Doug. I will try it.
meetme |
|
#4
|
|||
|
|||
|
If u wanna give a control a focus,u can use SetFocus method..
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > Enter Key and tab |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|