当前位置:网站首页>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
边栏推荐
猜你喜欢
[Maui] add click events for label, image and other controls
Theoretical basis of graph
2022/6/28学习总结
Compile and debug net6 source code
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
华为HMS Core携手超图为三维GIS注入新动能
二叉堆(一) - 原理与C实现
Redis' attack tactics
如何看懂开发的查询语句
Matrix of numpy
随机推荐
How to make the development of liquidity pledge mining system, case analysis and source code of DAPP defi NFT LP liquidity pledge mining system development
How to realize the four isolation levels of MySQL (brief)
Adjacency matrix undirected graph (I) - basic concepts and C language
(POJ - 1456) supermarket
Acly and metabolic diseases
Are the consequences of securities account cancellation safe
用实际例子详细探究OpenCV的轮廓检测函数findContours(),彻底搞清每个参数、每种模式的真正作用与含义
sshd_config 中 PermitRootLogin 的探讨
Skip the test cases to be executed in the unittest framework
redis中value/set
Oneconnect plans to be listed in Hong Kong on July 4: a loss of nearly 3 billion in two years, with a market capitalization evaporation of more than 90%
Wechat applet development - user authorization to log in to "suggestions collection"
博途V15添加GSD文件
Jd.com renewed its cooperation with Tencent: issuing class A shares to Tencent with a maximum value of US $220million
图的理论基础
TEMPEST HDMI泄漏接收 3
使用set_handler过滤掉特定的SystemC Wraning &Error Message
Istio、eBPF 和 RSocket Broker:深入研究服务网格
Custom grpc plug-in
Comment Nike a - t - il dominé la première place toute l'année? Voici les derniers résultats financiers.