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". >
©2007 Ajit Abraham |