当前位置:网站首页>C knowledge point form summary 2
C knowledge point form summary 2
2022-07-01 11:45:00 【dengfengling999】
Window forms
characteristic :
* User interface objects ( visualization )
* Message cycle input
* Resource sharing
* Graphic output
* Event driven programs ( enter one user name 、 password )

Form name with frm start
Lable Control is used to output text display information , Name with lbl start
Textbox: Enter... In the text box Name with txt Opening words
Button: Button Name with btn start
PictureBox: Control for putting pictures hold SizeMode Change it to StretchImage
Function realization :
MessageBox.Show(“”) Prompt box
MessageBox.Show(“ Perform the login function ”)
MessageBox.Show(“ Perform the login function ”,“ Tips ”)
MessageBox.Show(“ Perform the login function ”,“ Tips ”,“MessageBoxButton.OKcancel”)
MessageBox.Show(“ Line login function ”,“ Tips ”,MessageBoxButton.OK,MessageBoxIcon.Warning);
Application.Exit(); Execute exit
Textbox Control password input is not displayed hold PasswordChar write * Number
Press enter to log in : Set properties on the login page AcceptionButton Property is set to the login name








GroupBox Control is often used to logically combine a group of controls Containers Panel Control : Also used to partition
TabControl Control : Multiple tabs 、 Multi partition control attribute TabPages You can add multiple members
RadioButton: Radio controls use rbtn start
RadioButton attribute :
- Text: The text displayed on the control
- Checked: You can read or set this property to read or modify RadioButton Selected state
CheckBox: Multi select control
- Properties and events :
- Text attribute
- Checked attribute
- CheckedChanged event
ComboBox Control : The user selects the options enumerated by the control Items Edit item Dropdown options
NumericUpDown Control : Numeric selection control (NumericUpDown Control ) Is a control for displaying and entering values . The control provides a pair of up and down arrows , The user can click the up and down arrows to select the value , You can also type
ListBox Control : The list control is used to display a list , The user can select one or more . If the total number of options exceeds the number of items that can be displayed , The control will automatically add a scroll bar
Tablcontrol Control : Paging options
Menu bar control :MenuStrip With mus Name at the beginning
The project name is marked with tsm start The items in the project are marked with tsmi Name at the beginning
Toolbar controls :ToolStrip Item display picture and text change properties DisplayStyle, The toolbar : With tst start
Status bar control :StatusStrip, status bar : With tss Name the beginning


Context menus also become pop-up menus 、 Right-click menu 、 Shortcut menu ContextMenuStrip
Shortcut menus can be linked to forms Controls , Need to set up ContextMenuStrip attribute
The toolbar : With tst start


status bar : With tss Name the beginning

TreeView Tree control : Show node hierarchy
DateGridView Display data control , Display data in tabular form
边栏推荐
猜你喜欢

Emotion analysis based on IMDB comment data set

S7-1500plc simulation

Matrix of numpy

使用set_handler过滤掉特定的SystemC Wraning &Error Message

Comment Cao définit la décimale de dimension

Explore the contour detection function findcontours() of OpenCV in detail with practical examples, and thoroughly understand the real role and meaning of each parameter and mode

陈珙:微服务,它还那么纯粹吗?

Neo4j Chinese developer monthly - issue 202206

Abbirb120 industrial robot mechanical zero position

Tempest HDMI leak reception 4
随机推荐
Several cases of index failure
Botu V15 add GSD file
[buuctf.reverse] 144_[XMAN2018排位赛]easyvm
Learning summary on June 30, 2022
对于mvvm和mvc的理解
Nordic nrf52832 flash download M4 error
2022/6/30学习总结
Ultra detailed black apple installation graphic tutorial sent to EFI configuration collection and system
开发说,“ 这个不用测,回归正常流程就行 “,测试人员怎么办?
Redis startup and library entry
Dameng data rushes to the scientific innovation board: it plans to raise 2.4 billion yuan. Feng Yucai was once a professor of Huake
指纹浏览器工作原理、使用场景以及重要性简单讲解
力扣首页简介动画
Comment Nike a - t - il dominé la première place toute l'année? Voici les derniers résultats financiers.
Continuous delivery -pipeline getting started
Test case writing specification in unittest framework and how to run test cases
S7-1500PLC仿真
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
Deep understanding of grpc part1
TEMPEST HDMI泄漏接收 3