Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

send keycodes to two forms 1

Status
Not open for further replies.

bateman23

Programmer
Mar 2, 2001
145
DE
Hi,

Does anybody know how you can send keyodes to two different forms at the same time?
So when you press the z-key (for example), the letter z is shown in two text-boxes (which are on the two differnet forms).
 
Intercept the key stroke in the KeyPress event of the control that you are working with and send it to whatever forms you want.
There are several ways to do this . . .the most elegant whould be to post the keystroke in the message queue for the forms that you want to receive the keystroke, but you can also simple put the letter in the different textboxes that you want to put them in. - Jeff Marler B-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top