
08-31-2000, 01:01 PM
|
 |
Code Meister
Retired Moderator * Guru *
|
|
Join Date: Aug 2000
Location: Vancouver, BC, Canada
Posts: 10,441
|
|
Re: Checking for Textbox Focus
|
On a form, you could use me.ActiveControl
If typeof me.ActiveControl is textbox then
'edit or modify me.ActiveControl
End If
If you want to know which textbox is active, put it in a control array.
If typeof me.activecontrol is textbox then
i% = me.activecontrol.index
endif
or set and check the tags
if typeof me.activecontrol is textbox then
i%=me.activecontrol.tag
endif
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
|
__________________
"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder
|