当前位置:网站首页>C WinForm [exit application] - practice 3
C WinForm [exit application] - practice 3
2022-07-05 07:55:00 【BoomBiuBiu】
1、 Add an exit button on the menu bar
2、 Double click the exit button , Add code on the form
private void sign out ToolStripMenuItem_Click(object sender, EventArgs e)
{
if (MessageBox.Show(" Whether to quit the program ", " ", MessageBoxButtons.OKCancel,MessageBoxIcon.Warning) == DialogResult.OK)
{
Close();
}
}
3、 Run the program , Show results
边栏推荐
- Package ‘*****‘ has no installation candidate
- Practical application cases of digital Twins - fans
- Factors affecting the quality of slip rings in production
- Temperature sensor DS18B20 principle, with STM32 routine code
- Distinction between heap and stack
- Software designer: 03 database system
- String judgment
- Network port usage
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
猜你喜欢
SQL JOINS
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
UEFI development learning 3 - create UEFI program
Practical application cases of digital Twins - fans
Record the visual shock of the Winter Olympics and the introduction of the screen 2
Altium designer learning (I)
Factors affecting the quality of slip rings in production
[untitled] record the visual shock of the Winter Olympics and the introduction of the display screen
Software designer: 03 database system
Realization of binary relation of discrete mathematics with C language and its properties
随机推荐
SQL JOINS
Baiwen 7-day smart home learning experience of Internet of things
找不到实时聊天软件?给你推荐电商企业都在用的!
[professional literacy] core conferences and periodicals in the field of integrated circuits
Global and Chinese market of resistivity meter 2022-2028: Research Report on technology, participants, trends, market size and share
Esmini longspeedaction modification
Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Altium designer 19.1.18 - Import frame
Using C language to realize IIC driver in STM32 development
Makefile application
Summary of STM32 serial port sending and receiving data methods
Train your dataset with yolov4
Gradle复合构建
Explain STM32 startup file in detail
Query the table name used by kettle in Oracle
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
From then on, I understand convolutional neural network (CNN)
QT excellent articles