-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: SelvanDotnet
Message 3 in Discussion
Hi Suraj,
Use KeyUp or KeyDown Event Instead of Keypress Event.
Below listed code will solve ur Problem. At the same time think about the performance.
becoz keyUp/Keydown fires each and every Key Press.
Private Sub TextBox2_KeyUp(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles TextBox2.KeyUp
If e.KeyCode = Keys.Escape Then
TextBox1.Focus()
End If
If e.KeyCode = Keys.Enter Then
TextBox3.Focus()
End If
If e.KeyCode = Keys.Down Then
TextBox3.Focus()
End If
If e.KeyCode = Keys.Up Then
TextBox1.Focus()
End If
End Sub
Enjoy Coding.............
Tamil Selvan.S
Jardine <st1:country-region><st1:place>India</st1:place></st1:country-region> Software
Technologies
<st1:City><st1:place>Bangalore</st1:place></st1:City> - 560 042.
<st1:country-region><st1:place>India</st1:place></st1:country-region>
Tel - +91-(0)80-5325673-5 Ext: 140
Fax - +91- (0)80-5325677
Email - [EMAIL PROTECTED]
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]