Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
975
Close Button Click Event?
posted

Hello; 

I've got tabs with close buttons visible, (I've got version 8.1) and can't seem to locate a close button click event.  How are people catching this user action,  (Form closing, tabClosing?) or am I just missing the relevant event. 

Thanks, 

Bill

  • 44743
    Verified Answer
    posted

    You can handle either the UltraTabbedMdiManager.TabClosing or Form.FormClosing events to know when one of the tabs is closing. However, if you want to know when it is closing inresponse to the close button being clicked, you will have to handle the TabClosing event. Cast the event args to an MdiTabClosingEventArgs instance and get the CloseReason. It will be set to CloseButton when the close button is clicked.