当前位置:网站首页>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
边栏推荐
- [professional literacy] specific direction of analog integrated circuits
- Numpy——1.数组的创建
- Consul安装
- STM32 knowledge points
- Random function usage notes
- A simple method to prove 1/t Fourier transform
- Esmini longspeedaction modification
- Nombre - 1. Création de tableaux
- Altium designer learning (I)
- Using C language to realize IIC driver in STM32 development
猜你喜欢
Beijing Winter Olympics opening ceremony display equipment record 3
A simple method to prove 1/t Fourier transform
A complete set of indicators for the 10000 class clean room of electronic semiconductors
L'étude a révélé que le système de service à la clientèle du commerce électronique transfrontalier a ces cinq fonctions!
Nombre - 1. Création de tableaux
Ads learning record (lna_atf54143)
Logistic regression: the most basic neural network
Interview catalogue
UEFI development learning 2 - running ovmf in QEMU
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
随机推荐
Altium Designer 19.1.18 - 更改铺铜的透明度
Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
Package ‘*****‘ has no installation candidate
STM32 knowledge points
QT's excellent articles
软件设计师:03-数据库系统
How to select conductive slip ring
The research found that the cross-border e-commerce customer service system has these five functions!
1089 Insert or Merge 含测试点5
Numpy——1. Creation of array
Programming knowledge -- assembly knowledge
Gradle复合构建
Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
"Source code interpretation" famous programmer TJ's only library
About yolov3, conduct map test directly
MySQL blind note common functions
Altium designer 19.1.18 - clear information generated by measuring distance
solver. Learning notes of prototxt file parameters
LED display equipment records of the opening ceremony of the Beijing Winter Olympics
Random function usage notes