Hello again,
I've now successfully created a user control, which I can add to my own project. However, I have a small problem. The sender in the contextmenustrip is the contextmenustrip's ITEM, that is, unfortunately NOT the LABEL that made the contextmenustrip appear. So how do I pass the value from the label? Note that the label could have any name, so I can't use just "myLabel.Tag".
I'm looking for a piece of code that I can put in the Load event of the user control, something like this:
id = Parent.clickedControl.Tag (where id is a private variable declared at the top of the user control's code. Note that I don't know if parent has anything to do with this).
...or something else, if there is nothing like what I proposed.
Thanks again for all help!
Pettrer
Last edited by pettrer; 10-08-2008 at 10:06 AM.
|