473,395 Members | 2,010 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Using the Keyup() with an array of Textboxes

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
2 1296
Killer42
8,435 Expert 8TB
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
1,445 Expert 1GB
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

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

Similar topics

2
by: Thermidor | last post by:
Hi All, I have a page with three textboxes. Call them txt1, txt2, and txt3. Using javascript I need to populate txt3 with whatever has been typed into txt1 and txt2 as the information is being...
2
by: RBohannon | last post by:
Is it possible to create a control array on an unbound form? I would like to be able to loop through a series of unbound text boxes. Thanks.
1
by: Stephen | last post by:
Was wondering if someone could please help me with an array I'd like to create in an asp.net page. I have to design an array which stores the values of addresses manually entered into textboxes...
4
by: Serdge Kooleman | last post by:
How to get "Key press" event when i'm working with DataGrid (winforms). Seems to me that standard events "KeyUp, KeyPress" are ignored :-( Thank you
0
by: Gene Hubert | last post by:
I'm trying to catch the KeyUp event in textbox of a DataGrid. I'm picking up the keydown and keypress events ok, but not keyup. Can anyone see what is wrong with this code. I been fighting with...
10
by: Leon | last post by:
I have a program that fill 6 textbox on button click, but when using TypeOf my program is trying to also fill label controls which throws my array out of range. how can use TypeOf to only read...
2
by: Adam J. Schaff | last post by:
I have recently noticed an unwanted behavior that I do not know how to get rid of. To Recreate Problem: Windows Forms App with 2 forms. Form 1 has nothing on it and this code underneath: ...
9
by: jan82 | last post by:
Hi everybody I declared a private static array of textboxes at the top of a class, then i generate the array elements (new textbox()) in a separate function (private void in the same class), ...
7
by: Angel López | last post by:
How to do this with Vb.net 2008??? myNumber=1+ Int(Rnd()*90) text(myNumber).backcolor=vbRed Tanks Angel
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.