Making the panel invisible??
-
I have a list of buttons in the panel( one below the other. Just like a dropdowm menu). It is invisible by default. I have a button on the form. When I click the button on the form, I show the panel just below the button. Now when I click anywhere on the form other than the panel and buttons inside the panel, the panel should become invisible. Any ideas on how to achive this would be very much appreciated. Thanks, VPMahank.
-
I have a list of buttons in the panel( one below the other. Just like a dropdowm menu). It is invisible by default. I have a button on the form. When I click the button on the form, I show the panel just below the button. Now when I click anywhere on the form other than the panel and buttons inside the panel, the panel should become invisible. Any ideas on how to achive this would be very much appreciated. Thanks, VPMahank.
-
Just set the Visibility property to false in te Click evnet of a form... Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!
Yes, I totally understand. But if there are a bunch of controls in the form, lets say there are a few labels on the form, the visibility property of the panel has to be set on click event of each label. I cannot just handle it in the Click event of the form. I need to have a generic way of doing this. :confused: Thanks, VPMahank