Vince,

How about creating a property of the form and then populating this 
property with the name of the textbox in the lostfocus event of all the 
textboxes.
Then in the click event of the button you can check this property and it 
should tell you the name of the last textbox that you exited from.

_Ajit

Vince Teachout wrote:

> 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".
> 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to