Multiple Handles clause: which control fired event?

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
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
 
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]
 
Back
Top