Treating Enter key as TAB in UI with C#, VB6

Sometimes, End User of robust application prefers pressing Enter to Tab Key while navigate through various input fields.

To implement this, you can use this KeyPress event in each Form.

Don’t forget to set KeyPreview property to True. Now, whenever you press enter key while navigating in Form, it will be treated as Tab and you will be navigated to next Input field.

This is all the same for Visual Basic 6 except coding syntax.

A Rahim Khan

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: