WINFORM Development Model

Source: Internet
Author: User
Tags set background

Software is divided into 3 types of client site app app

WINFORM is mainly used for client applications, C/s

The client program is very important features: can operate the user's computer files, execution on the client, the higher the computer configuration, the more smooth execution.

There's this code in the program class.

The Newform1 in this run is to create a new Form1 window object when the program is running.

The main operation is the Form.cs file.

is also divided into two interfaces, one is the code interface, and the other is the design interface. Mainly in the design interface to complete.

The properties of the form class are divided into two parts, where partial means that this is part of the attribute.

Another part of the class code is inside this Form1.

Form Properties
Form type:
+ Notepad type can change size arbitrarily
+ Calculator Type fixed size not maximized
+ No Border type no border, no title bar option
+ Irregular type irregular shape border
+ Top type shows grassroots height, at the topmost of all programs

Form Common Properties

+ Layout
-AutoScroll content out of range will appear scroll bar
-MaximumSize form Maximum size
-minimumsize form Minimum size
-size form is currently sized and will change at any time
-StartPosition The form start position, center screen is centered according to the position of the display, center parebt is centered on the parent window
-WindowState Form initializes the visible state, initially minimized or maximized

+ window Style
-ControlBox If there is a title bar menu to close, maximize, minimize what
-icon in the upper left-hand corner ico format
-MaximizeBox whether the menu has a maximize button
-MinimizeBox Menu has minimized button
-Opacity Transparency 100% It's a little opaque. 0% completely transparent, disappeared.
-Showicon whether to display the top left corner small icon
-ShowInTaskbar Whether this form appears in the desktop taskbar
-Topmost whether the display is pinned
-Tran .... Key makes one color transparent

+ Appearance
-BackColor Background color
-Bakcgroundimage Background map
-BackgroundImageLayout Background Map expansion mode
-Cursor Mouse style
-Font style
-ForeColor Font Color
-FormBorderStyle with no border, border style
-text associated with a space

+ Miscellaneous
-AcceptButton "Accept" button, press Enter each time is equivalent to the single-machine button
-CancelButton "Cancel" button, each time pressing ESC is equal to the single button

Spoof program (masking program)
One, the form to maximize the start
Second, remove the border
Third, set the sticky
Iv. do not display in taskbar
V. Do not display in Task Manager
Branch One
Set form Transparency 1%
Branch Two
Set background image to blue screen
Shielding Alt+f4 how to block the win key

Note: You need to do your own shutdown first.

WINFORM Development Model

Related Article

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.