Someone let me know how to handle Group Box Close event, as i didn’t see any event handler for this in .net.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
GroupBoxes are strictly visual elements, used to group related controls together on a form. By default, there is no way to close them, so there’s no event to handle.If you want to hide the box for some reason, you’re allowed to handle its
Clickevent, and change its visibility there.Updated: If you want to handle your dialog box being closed, you can handle either the
Closingevent (to perform work prior to the box closing) or theClosedevent (to perform work after the box has closed.)You can add the handler in your
Form‘s constructor: