当前位置:网站首页>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
边栏推荐
- Ten thousand words detailed eight sorting must read (code + dynamic diagram demonstration)
- Acwing - the collection of pet elves - (multidimensional 01 Backpack + positive and reverse order + two forms of DP for the answer)
- Linked list (establishment, deletion, insertion and printing of one-way linked list)
- Explain STM32 startup file in detail
- NSIS search folder
- Define in and define out
- Function and usage of function pointer
- LED display equipment records of the opening ceremony of the Beijing Winter Olympics
- How to select conductive slip ring
- The browser cannot access Baidu
猜你喜欢
UEFI development learning 6 - creation of protocol
Could NOT find XXX (missing: XXX_LIBRARY XXX_DIR)
C language enhancement -- pointer
Beijing Winter Olympics opening ceremony display equipment record 3
Shell script basic syntax
High end electronic chips help upgrade traditional oil particle monitoring
Package ‘*****‘ has no installation candidate
Altium designer 19.1.18 - Import frame
Altium designer 19.1.18 - clear information generated by measuring distance
Opendrive ramp
随机推荐
Gradle composite construction
Function of static
The printer encountered an abnormal configuration problem 0x8007007e (win10)
Query the table name used by kettle in Oracle
Pointnet++ classification practice
Beijing Winter Olympics opening ceremony display equipment record 3
Linked list (establishment, deletion, insertion and printing of one-way linked list)
C language enhancement -- pointer
Interview catalogue
Improve lighting C program
Global and Chinese markets of nano biosensors 2022-2028: Research Report on technology, participants, trends, market size and share
Software designer: 03 database system
Calibre garbled
UEFI development learning 4 - getting to know variable services
1089 insert or merge, including test point 5
About yolov3, conduct map test directly
The research found that the cross-border e-commerce customer service system has these five functions!
Global and Chinese market of peeled bourdon tubes 2022-2028: Research Report on technology, participants, trends, market size and share
Temperature sensor DS18B20 principle, with STM32 routine code
Significance and requirements of semiconductor particle control