p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Visual Basic 2005 Basics (http://p2p.wrox.com/forumdisplay.php?f=137)
-   -   Using Enter to jump to the next text field (http://p2p.wrox.com/showthread.php?t=41210)

dimeanel April 12th, 2006 04:14 PM

Using Enter to jump to the next text field
 
I want to use Enter button on the keyboard to jump to the next text box in my form insted of using Tab button during execution the program. Can anyone help me about that?


Manthan_Mehta60 March 29th, 2007 02:34 AM

hi

 For Your Problem You Can use This code

Private Sub txtamount_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles txtamount.KeyDown

        If e.KeyCode = Keys.Enter Then cmd_Save.Select()

    End Sub


buckruss April 29th, 2007 01:25 AM

Hi,
On a number of controls the property "Enter Moves to Next field" can be set to True. This comes in defaulted to false.


All times are GMT -4. The time now is 03:21 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.