By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,641 Members | 1,446 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,641 IT Pros & Developers. It's quick & easy.

Multiple Handles clause: which control fired event?

P: n/a
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
Nov 12 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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]
"Dean Slindee" <sl*****@charter.netschreef in bericht
news:Q0***************@newsfe02.lga...
>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

Nov 12 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.