main logo
Subject: Re: Problem: How to tell current (or last) visited textbox
Author: Ajit Abraham
Posted: 2007/09/29 09:21:59
 
View Entire Thread
New Search


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
<-- Prior Message New Search Next Message -->