Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default click event to all textboxes

Status
Not open for further replies.

daveonion

Programmer
Aug 21, 2002
359
GB
Hi,
I have about 80 textboxes and when either is clicked I want to run a function passing through the textbox name. Is there a way to specify (without going into each individual textbox click event and entering the function) a global/default event for all of the text boxes.

Thanks in advance
 
Build a single function
In design view select all controls
In the properties window under the click event: = yourFunctionName()
 
And to know which TextBox raised the event, use the Screen.ActiveControl property.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top