By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,948 Members | 816 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,948 IT Pros & Developers. It's quick & easy.

Using the Keyup() with an array of Textboxes

P: 4
Hi, I am trying to use the Enter key with an array of text boxes (Keyup event). I can't. How to use it with the (Text(1).Text) array members. Please Help.
Pankaj
Sep 9 '07 #1
Share this Question
Share on Google+
2 Replies


Expert 5K+
P: 8,434
Hi, I am trying to use the Enter key with an array of text boxes (Keyup event). I can't. How to use it with the (Text(1).Text) array members. Please Help.
The [Enter] key can be a problem, as it is sometimes handled automatically by Windows before you get a chance at it. For instance, if you have a command button on the form with the Default property set to True, pressing [Enter] usually triggers that button.

However, that being said, you should be able to get away with detecting it in the KeyUp event. So what's the problem? And what is it you want to do with the [Enter] key? I was going to ask what version of VB, but since you're using an array I guess it would be VB6 or maybe VB5.
Sep 9 '07 #2

QVeen72
Expert 100+
P: 1,445
Hi,

Index of the textBox will be passed in the keyPress Event,
Depending on the Index, u can write the Code

Regards
Veena
Sep 9 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.