Multiple Handles clause: which control fired event?

D

Dean Slindee

I have a control which handles the DoubleClick event for itself and many
other controls like it. I would like to examine the .Tag property value of
the control that fired the DoubleClick event. Is there a way to examine the
..Tag property value no matter which control fired the event? Reflection?

Thanks,
Dean S
 
M

Michel Posseth [MCP]

hello Dean

Just cast the sender object to a control type and you can read out all
properties of the control including the name of the controls that fired the
event so in this case you do not need the tag at all

regards

Michel Posseth [MCP]
 

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

Top