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
510
How can I prevent Form closing by Ctrl-F4
posted

 Hi,

I am using TabbedMDIManager and I don't  want to close tab when User press Ctrl-F4. In older version(6.3), that is OK but later version(7.1) is not.

I have tried to find property in order to prevent close tab but I can't found. Could anyone show me how to do? By overrides or set propert?

Thanks 

Parents
No Data
Reply
  • 44743
    Verified Answer
    posted

    I believe there are two ways to get around this:

    1. You can override ProcessDialogKey on your mdi child Form and if Ctrl+F4 is pressed, return True.

    2. You can set ControlBox on the mdi child Form to False. This prevents Ctrl+F4 functionality.

Children