Ok. The user is in a textbox. He hits CTRL-A (or whatever). What happens
then? What is "the number" that gets copied into the current & next
controls? Is that the CTRL-A, or is it something else?
As for your code, it seems to wait for >any< keypress (of any description),
then tries to copy that key into the current control & the two after it.
That would make the form almost inoperable, in my opinion. Is that really
what you want it to do? If so, what is the purpose or benefit of doing that?
HTH,
TC
Mike said:
This is the code. I have textboxes named T1 thru T100. I want a user to
be able to be in any textbox, hit CTL+A (or S,etc.) and place the number 1
(or 2, etc) into the active textbox (say T3) and the next two (i.e., T4 and
T5). That's why I put the Keypress event on the form rather than on the
textbox -- I'd have to write it 100 times. Is there a better idea of how to
do it? Thanks,