Hi!
I have a form called Form1.
I have two panels on that form.
I load a usercontrol into one of those panels. That usercontrol contains a series of buttons. I want the form1 to detect when a button is pressed.
Thanks.
Hi!
I have a form called Form1.
I have two panels on that form.
I load a usercontrol into one of those panels. That usercontrol contains a series of buttons. I want the form1 to detect when a button is pressed.
Thanks.
If this isn't possible because of the fact that the buttons are in a user control you may need to use delegates.
http://www.csharp-station.com/Tutorial/CSharp/lesson14
http://www.dreamincode.net/forums/to...n-buttonclick/
Thanks x-ice. I will look into those links.
Meanwhile, if anyone has any other way of doing this then please let me know.
Thanks x-ice. I will look into those links.
Meanwhile, if anyone has any other way of doing this then please let me know.