By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,280 Members | 1,232 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,280 IT Pros & Developers. It's quick & easy.

In Leave Event - Which control is about to have focus???

P: n/a
Hi all!

In a control's Leave event, is it possible to determine which control
(or tab stop) is about to gain focus?

Thanks in advance.
Nov 20 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
Hello,

"AnAnimal" <An******@somewhere.net> schrieb:
In a control's Leave event, is it possible to determine which control
(or tab stop) is about to gain focus?


You may want to check the form's 'GetNextControl' method.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

P: n/a
TabIndex property should help U

Regards
Mahesh
-----Original Message-----
Hi all!

In a control's Leave event, is it possible to determine which control(or tab stop) is about to gain focus?

Thanks in advance.
.

Nov 20 '05 #3

P: n/a
Thanks Mahesh

but TabIndex would only be true if the user used the Tab key. What if
the user has used the mouse to select the next control?

On Wed, 17 Sep 2003 05:45:30 -0700, "mahesh" <ma**********@wipro.com>
wrote:
TabIndex property should help U

Regards
Mahesh
-----Original Message-----
Hi all!

In a control's Leave event, is it possible to determine

which control
(or tab stop) is about to gain focus?

Thanks in advance.
.


Nov 20 '05 #4

P: n/a
Hello,

"mahesh" <ma**********@wipro.com> schrieb:
TabIndex property should help U


The user could press Shift+Tab to step backwards in the tab order or set the
focus to an other control by using the mouse or pressing a mnemonic. This
won't work.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #5

P: n/a
Errata:

"Herfried K. Wagner [MVP]" <hi*******@m.activevb.de> schrieb:
In a control's Leave event, is it possible to determine which
control (or tab stop) is about to gain focus?


You may want to check the form's 'GetNextControl' method.


This won't work in all cases.

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet
Nov 20 '05 #6

P: n/a
Thanks everyone!!!

I am using the GetNextControl to get to the info needed.

Thanks again!
Nov 20 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.