caribou_2000
08-31-2000, 09:10 AM
I need code to check and see which textbox has focus without setting focus so that I can apply my Cut/Copy/Paste procedures to.
Checking for Textbox Focuscaribou_2000 08-31-2000, 09:10 AM I need code to check and see which textbox has focus without setting focus so that I can apply my Cut/Copy/Paste procedures to. BillSoo 08-31-2000, 01:01 PM 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 caribou_2000 08-31-2000, 01:55 PM thanks for the info. |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum