with events

M

micmoo

I am working with withevents but I have a question regarding the "sourcing"
of control.

Usually the "sourcing" is made on a specific type of control (i.e. TextBox,
Combox, ListBox). In my specific case I would like the "sourcing" to be any
control of a form (i.e. I would like the same event to be triggered each
time I am clicking in one control of a form, whatever is the type of
control).

Any idea ?

Thanks in advance

Michel
 
M

MacDermott

I'm not quite sure what you're trying to achieve here.
If you want the same code to run in the OnClick event of any (visible)
control, you can write a function in a standard module and point each
control's OnClick event to that code.

HTH
 
Top