473,473 Members | 1,838 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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

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
6 5533
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
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
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
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
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
Thanks everyone!!!

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

Thanks again!
Nov 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JayDee | last post by:
After a user enters data into a field, I need to populate other controls on the form, based on the user entry. I have to use either Leave, Validating or Validated, and I take it I can't use...
4
by: MJW | last post by:
Is there a way for me to know if or which command button was just clicked that triggers the LostFocus event for the current control on a Form? I have a form that has many types of users who each...
2
by: vooose | last post by:
Does anyone know the difference between these two? The doc for LostFocus says 'Occurs when the control loses focus.' whereas for Leave it says 'Occurs when the input focus leaves the control'...
1
by: Zyrthofar | last post by:
Hi I have three textboxes indicating the individual RGB values of a color. When the user leaves a textbox (Leave event), I check the validity of that number and saves the three values to a set of...
4
by: liups | last post by:
Hi, I have an array of usercontrols, each of the usercontrol has a label and a textbox, I want to do some checking when the textbox loses focus, the code is like this: Private Sub...
0
by: G.Ashok | last post by:
Hi, I just installed VS.Net 2003 and upgraded my project to 2003. Immediately found the following new behavior which causes my solution working erratic. In the leave event of a control (e.g....
2
by: Simon Verona | last post by:
I have a usercontrol with code in the "leave" event which updates the final data back into a database. This works fine except if I have a default "accept" button on a form and invoke it by...
1
by: geneb | last post by:
I've got a number of tabs with text boxes on them. When you hit the last textbox on a tab, it checks to see if the next tab is a valid destination, then goes to it if so. Unfortunately, when...
0
by: Builder | last post by:
I made a simple app to test Leave focus event and AutoComplete functionality on the text box control. I added 2 text box controls on the blank form. Then I added Leave focus event handlers for...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.