Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

How to disable close button?

Hello,
Does anyone know whether it is possible to temporally disable the colose button (in the upper right corner) of my app window as it is in Back up window while backing up?

Comments

  • you can try another option: whenever a user click "close" button, check if you are backuping or doing other jobs using FormClosing event. The following is an example posted on the web for your reference. It is written in C#
    ----------------------------------------------------
    private
    void
    Form1_Closing(object sender, 
    System.ComponentModel.CancelEventArgs e)

    {
       // check if you are backing up something

       if(MessageBox.Show("Are you sure you
    want to exit?", "Confirm exit", MessageBoxButtons.YesNo,
    MessageBoxIcon.Question) == DialogResult.No)

       {// ignore close behave

       e.Cancel = true;

       }

    }