Click to See Complete Forum and Search --> : Get handle to Active control


gfr1
July 24th, 2005, 06:52 PM
How can I get the handle to the textbox that currently has focus. I want to write a generic routine that processes the data in several textbox. How can I get the handle to the currently active textbox so I can extract the text from it.

Andy Tacker
July 26th, 2005, 02:47 AM
you get the active textbox by checking it's Focus property.... and from textbox itself you can get handle through handle property.