|
-
Aug 23rd, 2006, 03:24 AM
#1
Thread Starter
Addicted Member
[RESOLVED] Check control got focus or not
Hi,
I have two control on form1
How to check control1 got focus or not from an sub or procedure ?
-
Aug 23rd, 2006, 03:25 AM
#2
Re: Check control got focus or not
write a MsgBox in your control's GotFocus Event and that code will get executed once that control got focus. or in a form you can check with this codethis will give you current control's name
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Aug 23rd, 2006, 04:46 AM
#3
Thread Starter
Addicted Member
Re: Check control got focus or not
thanks
Try it, it work.
But there is other method then this? (Me.ActiveControl.Name)
Last edited by barianto; Aug 23rd, 2006 at 04:51 AM.
-
Aug 23rd, 2006, 04:48 AM
#4
Re: Check control got focus or not
I use only these codes...Im not sure is there any other methods
If an answer to your question has been helpful, then please, Rate it!
Have done Projects in Access and Member management systems using BioMetric devices, Smart cards and BarCodes.
-
Aug 23rd, 2006, 06:37 AM
#5
Re: Check control got focus or not
why would you need another method?
-
Aug 23rd, 2006, 08:52 PM
#6
Thread Starter
Addicted Member
Re: Check control got focus or not
coz, i want to make it generic, i don't want to compare it to each control i have
Last edited by barianto; Aug 23rd, 2006 at 10:48 PM.
-
Aug 23rd, 2006, 09:14 PM
#7
Re: Check control got focus or not
 Originally Posted by barianto
coz, i don't want to make it generic, i don't want to compare it to each control i have
It wont........ I will return the current active Control (name). Perfect for your Sub()!
-
Aug 24th, 2006, 05:14 AM
#8
Thread Starter
Addicted Member
Re: Check control got focus or not
Ok then. This is resolved
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|