How to disable close button?
Options
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.4K RobotStudio
- 384 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 734 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings