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.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 799 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings