当前位置:网站首页>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
边栏推荐
- .NET服务治理之限流中间件-FireflySoft.RateLimit
- Temperature sensor DS18B20 principle, with STM32 routine code
- SQL JOINS
- Train your dataset with yolov4
- Latex notes
- Detailed explanation of pragma usage
- Global and Chinese markets of large aperture scintillators 2022-2028: Research Report on technology, participants, trends, market size and share
- Significance and requirements of semiconductor particle control
- Acwing-宠物小精灵之收服-(多维01背包+正序倒序+两种形式dp求答案)
- Practical application cases of digital Twins - fans
猜你喜欢
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
万字详解八大排序 必读(代码+动图演示)
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Beijing Winter Olympics opening ceremony display equipment record 3
Realization of binary relation of discrete mathematics with C language and its properties
Altium Designer 19.1.18 - 隐藏某一个网络的飞线
Oracle triggers and packages
Markdown tips
Practical application cases of digital Twins - fans
Ads usage skills
随机推荐
About the problem that MySQL connector net cannot be cleared in MySQL
TCP and UDP
Some errors in configuring the environment
Embedded AI intelligent technology liquid particle counter
Global and Chinese market of quenching furnaces 2022-2028: Research Report on technology, participants, trends, market size and share
Application of ultra pure water particle counter in electronic semiconductors
Network port usage
Nombre - 1. Création de tableaux
Screen record of the opening ceremony of the Beijing winter olympics 2
Win10 shortcut key
Altium Designer 19.1.18 - 清除测量距离产生的信息
1089 insert or merge, including test point 5
Programming knowledge -- basis of C language
PIL's image tool image reduction and splicing.
Factors affecting the quality of slip rings in production
About yolov3, conduct map test directly
Day09 how to create packages import package naming conventions Alibaba Development Manual
String judgment
STM32 knowledge points
Openxlsx field reading problem