当前位置:网站首页>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
边栏推荐
- Scm-05 basis of independent keyboard
- 1-stm32 operation environment construction
- GPIO circuit principle of stm32
- Screen record of the opening ceremony of the Beijing winter olympics 2
- Shell script basic syntax
- Extended application of single chip microcomputer-06 independent key
- How to migrate the device data accessed by the RTSP of the easycvr platform to easynvr?
- QT's excellent articles
- How to define guid in AMI code
- Software designer: 03 database system
猜你喜欢
找不到实时聊天软件?给你推荐电商企业都在用的!
Makefile application
Programming knowledge -- assembly knowledge
C#,数值计算(Numerical Recipes in C#),线性代数方程的求解,LU分解(LU Decomposition)源程序
A complete set of indicators for the 10000 class clean room of electronic semiconductors
P3D gauge size problem
Cadence simulation encountered "input.scs": can not open input file change path problem
Consul安装
C language uses arrays to realize the intersection, union, difference and complement of sets
Practical application cases of digital Twins - fans
随机推荐
Realization of binary relation of discrete mathematics with C language and its properties
Ads learning record (lna_atf54143)
mysql 盲注常见函数
Day01 markdown log entry tips
Global and Chinese markets for recycled boilers 2022-2028: Research Report on technology, participants, trends, market size and share
Mlperf training v2.0 list released, with the same GPU configuration, the performance of Baidu PaddlePaddle ranks first in the world
Altium designer 19.1.18 - change the transparency of copper laying
生产中影响滑环质量的因素
Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
The global and Chinese market of lithographic labels 2022-2028: Research Report on technology, participants, trends, market size and share
Day07 type of mathematical operator automatic conversion relational operator bitwise operator blind date math
Train your dataset with yolov4
About yolov3, conduct map test directly
String judgment
RF ride side door processing of prompt box
Use of orbbec Astra depth camera of OBI Zhongguang in ROS melody
通过sql语句统计特定字段出现次数并排序
找不到实时聊天软件?给你推荐电商企业都在用的!
Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
The sublime version that XP can run is 3114