2017-4-24 WinForm Form Base properties ico pictures generate irregular form of mobile spoof applet

Source: Internet
Author: User

1. Client application: C/S

Features: Manipulating files on users ' computers

2. Form Categories:

Notepad type---form can be dragged arbitrarily size

Calculator type----form fixed size, no maximized

No variable width type---anti-virus software

Irregular type---desktop accelerator ball

The pinned type---open without being obscured by other forms, such as QQ

3. Form Base Properties

  Layout:

AutoScroll-the scroll bar appears automatically when the control is out of the form

Location---The distance from the upper-left corner of the desktop that needs to be used with manual in StartPosition

MaximumSize---The largest size of a form

MinimumSize---The smallest size of a form

Size----Form

StartPosition---Control the position of the first time the form is opened

Manual---Mate location is where the open window (the upper left corner) is determined

Centerscreen--open form, centered on the desktop

Centerparent---Centered on the previous form

WindowState---The state of the first opening of a form (max, min)

  Window style:

ControlBox---Determine if a form has a menu control bar

Icon---form screaming icons

MaximizeBox---whether the form has a maximized icon

MinimizeBox----The form has a minimized icon (if only one is set to Gray, 2 are not displayed)

Opacity---Set form transparency

Showicon--Set whether the form's small icon is displayed

ShowInTaskbar---The taskbar is displayed under the Settings window

Topmost---Set the highest level

TransparencyKey---Set what background sample color is transparent

 Appearance:

BackColor---background color

BackgroundImage---Setting a background picture

BackgroundImageLayout---How to tile a background picture

Tiles (tile tiling, multiple) center (one picture centered, without any change in picture)

Stretch (picture stretch) zoom (picture horizontally centered, left and right centered, full up and down)

Cursor--Mouse style

FormBorderStyle---border style none (Nothing) fixedsingle (fixed position)

 Miscellaneous:

AcceptButton---accept button on form, press ENTER after setting, equivalent to click Change button

CancelButton---The form to cancel the key, pressing ESC after setting is equivalent to clicking the button

Data:

The Tag property can put any property

4.ico icon Generation:

Website: http://www.bitbug.net/Rapid Generation

5. Movement of irregular forms

Need to reference API file

Form Move Code:

//Form Mobile API[DllImport ("user32.dll")] Public Static extern BOOLreleasecapture (); [DllImport ("user32.dll")] Public Static extern BOOLSendMessage (INTPTR hwnd,intWmsg,intWParam,intiparam); Public Const intWm_syscommand =0x0112; Public Const intSc_move =0xf010; Public Const intHtcaption =0x0002; [DllImport ("User32")]Private Static extern intSendMessage (INTPTR hwnd,intWmsg,intWParam, IntPtr lParam);Private Const intWm_setredraw =0xB;Private voidForm1_mousedown (Objectsender, MouseEventArgs e) {    if( This. WindowState = =formwindowstate.normal) {releasecapture (); SendMessage ( This. Handle, Wm_syscommand, Sc_move + htcaption,0); }}
View Code

  Form Shadow code:

1, add namespaces:usingSystem.Runtime.InteropServices; 2, define constant values and functions:Private Const intCs_dropshadow =0x20000; Private Const intGcl_style = (- -); [DllImport ("user32.dll", CharSet =CharSet.Auto)] Public Static extern intSetclasslong (INTPTR hwnd,intNIndex,intDwnewlong); [DllImport ("user32.dll", CharSet =CharSet.Auto)] Public Static extern intGetclasslong (INTPTR hwnd,intnIndex);3, constructed by reference: Setclasslong ( This. Handle, Gcl_style, Getclasslong ( This. Handle, Gcl_style) | Cs_dropshadow);
View Code

6. Spoof Small Program

SOURCE Download: https://i.cnblogs.com/Files.aspx

  

      

     

  

  

2017-4-24 WinForm Form Base properties ico pictures generate irregular form of mobile spoof applet

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.