Close button on a UserControl

Posted by Tanwar18 under C# on 10/9/2013 | Points: 10 | Views : 1886 | Status : [Member] | Replies : 1
I'm using a UserControl and I want to have a close button like a windows form has.
Ina windows form there are three buttons on the top right minimize, maximize and close. Similarly I want a Close button(X) on my UserControl.
Please somebody guide me with this.


Posted by: Learningtorise on: 10/10/2013 [Member] Starter | Points: 25

R u showing it in a dialog or what?

You can always add a "X" ImageButton above right and set its event to close userControl when Clicked.

Tanwar18, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response