main logo
Subject: Problem: How to tell current (or last) visited textbox
Author: Vince Teachout
Posted: 2007/09/29 08:57:37
 
View Entire Thread
New Search


This is a simplification of the actual problem, but what I'd like to do
is this:

On a form I have 4 textboxes called text1.... text4

Below it I have a button.

If I'm entering text into text box 3, I'd like to press the button and
have the value replaced with "something spiffy".

Likewise, if I'm entering text into textbox2, I'd like to press the same
button, but have textbox2 replaced with "something spiffy".

Iow, whatever box I was in just before I pressed the button, but ONLY
one of those 4 boxes. (there are other textboxes on the form)

Any ideas? I looked at activecontrol, but of course, when I press the
button, the button is ActiveControl.





 
©2007 Vince Teachout
<-- Prior Message New Search Next Message -->