with events

  • Thread starter Thread starter micmoo
  • Start date Start date
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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top