"2017-04-24" WinForm Foundation, Login window, window properties

Source: Internet
Author: User
Tags transparent color

First, the WinForm Foundation

Client application: C/S

The client application can manipulate the files on the user's computer, and the code executes on the user's computer.

Form type:
1. Notepad type--default type, can be resized to maximize
2. Calculator Type--cannot be resized and cannot be maximized (form property maximization is not available: MaximizeBox is changed to false.) No drag size: Formborderstyle:fixedsingle)
3. No border type--cannot be resized, cannot move position (Formborderstyle:none)
4. Irregular type--irregular border type (backgroundimage set a background picture when you import a picture Select project resource file Backgroundimagelayout:stretch extrude TRANSPARENCYKEY:WH When an ITE is drawn to a form, it displays white as a transparent color)
5. Top type--always displayed at the outermost level with highest display levels (Topmost:true)

Control: The content contained in the form. In the View toolbox, left-click the mouse button to drag the control to the form.

Right-click the control you want to manipulate select properties to manipulate the properties of the current control

The six most commonly used controls :

1. Label is specifically used to display text text on the form in the Text Property AutoSize property is automatically resized according to the text content

2. ComboBox drop-down box you can click on the small arrow in the top right of the control to select an edit item to add content to each behavior one option

3, RadioButton only select one of the boxes if you want to set a radio box content to the default selection to set its Checked property to True

4. CheckBox check box can select multiple

5, TextBox text box default line click on the upper right corner of the triangle tick Multiline you can control the size of the text box

6. button buttons Name Set button Name text setting button display text double-click the event to enter the Settings button (default is Click event)

To set a click event for a button:

Select the event (small lightning) in the button's property interface, and the event's method name will double-click the event method interface to write the method.

Print MessageBox.Show ("")--parentheses must put string class inside

View the contents of the text box and use the Text property

View the selected state of the button with the Checked property (returns a BOOL Class)

View the selected state of the drop-down list with the SelectItem property

Second, common window properties

+ Layout
-AutoScroll scroll bars appear if the contents of the form are not displayed intact
-MaximumSize form Maximum size
-minimumsize form Minimum size
-Size Form Current dimensions
-startposition-form start position. Remember that two values Centerscreen appear in the middle of the screen. The centerparent is displayed in the middle of the parent window.
-WindowState form Initialization visual State, initial maximize/Minimize

+ window Style
-ControlBox max Minimize, close button hidden
-Icon Form small icons. Online Icon Widget
-MaximizeBox settings maximized available not available
-MinimizeBox settings Minimized available
-Opacity transparency. 0% is pure transparent
-Showicon Display icon
-ShowInTaskbar taskbar to show or hide
-Topmost level settings
-Tran .... Key to make any color on the form transparent

+ Design

-Name program look at this window names

+ Appearance
-BackColor Background color
-Bakcgroundimage background image
-BackgroundImageLayout background Map layout style
-Cursor mouse display type in the form
-Font fonts
-ForeColor Front View
-FormBorderStyle form Border style
-Content displayed in Text

+ Miscellaneous
-AcceptButton to specify a button press Enter is equal to pressing the button
-CancelButton Specify a button to press ESC equals to press the button

"2017-04-24" WinForm Foundation, Login window, window properties

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.