RobotStudio event

How to disable close button?

Options
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

  • newform
    Options
    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;

       }

    }