Jym
November 19th, 2002, 01:02 PM
Explaination of my problem
I have 100 or so controls on a form.
I was wondering if there is a way to do an event when one of the controls is clicked ...
I know I can individually go through each control and set up the .click handler but since it's the same event no matter which control is clicked I was just wondering if there is a "broad" handler that would run an event if any control is clicked.
for a dynamically added control I am using
AddHandler lbl.Click, New System.EventHandler(AddressOf lbl_click)
but don't know if I can set up something for the 100 controls that are always on the form.
Thanks for you ideas
Jym
I have 100 or so controls on a form.
I was wondering if there is a way to do an event when one of the controls is clicked ...
I know I can individually go through each control and set up the .click handler but since it's the same event no matter which control is clicked I was just wondering if there is a "broad" handler that would run an event if any control is clicked.
for a dynamically added control I am using
AddHandler lbl.Click, New System.EventHandler(AddressOf lbl_click)
but don't know if I can set up something for the 100 controls that are always on the form.
Thanks for you ideas
Jym