How to disable close button?

wolfino
✭✭
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?
0
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;
}
}
0
Categories
- All Categories
- 5.6K RobotStudio
- 398 UpFeed
- 20 Tutorials
- 14 RobotApps
- 300 PowerPacs
- 406 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 335 IRC5
- 67 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 827 RAPID Programming
- 10 AppStudio
- 4 RobotStudio AR Viewer
- 19 Wizard Easy Programming
- 106 Collaborative Robots
- 5 Job listings