VS Window Maker

Source: Internet
Author: User
Tags transparent color

Form:
First, control the title bar:
Text-the caption text in the upper-left corner of the form.
Icon-icons in the upper-left corner of the form. (How do I make icons?) 1. Find a ready-made. 2. Draw it yourself. 3. Turn with the picture)
MaximizeBox-The Maximize box is available in the upper-right corner of the form.
MinimizeBox-The minimized box is available in the upper-right corner of the form.


Second, control the border:
FormBorderStyle-The border style of the form.
Sizable-adjustable size. fixedsingle-a fixed border. None-has no border.

Third, the control background:
BackColor-Background color
BackgroundImage-Background image
BackgroundImageLayout-the layout of the background picture.
Tile-Tile. Center-Center. Stretch-Stretch. Zoom-Proportionally

Iv. Other special controls:
ShowInTaskbar-whether to display in taskbar.
WindowState-the status of the form startup. Normal-OK. minimized-start minimized. maximzied-start maximized.
Topmost-is the top-level form.
Opacity-transparency. 100% completely opaque. 0% completely transparent.
TransparencyKey-Transparent color of the form.

Case one: How do I make a mask form?
1. Remove the border. FormBorderStyle = None
2. Set to maximize startup. WindowState = maximized
3. Set the transparency. Opacity = 1%
4. Settings are not displayed on the taskbar. ShowInTaskbar = False.
5. Set the top-level form. topmost = True.


Question one: How can I modify the icon of the generated EXE file?
1. In the solution Manager, right-click on the project and select Properties.
2. In the properties interface, set the icon in the application.
3. Run it a bit.

Question two: How do I add a new form and set it as the startup form?
1. Right-click on the project in the solution Manager--"add"--"Windows Forms" and click "OK" in the dialog box that pops up
2. On Program.cs in Solution Manager, double-click open to put the last line of Application.Run (new you want to move the form name of the row ())

Case two: How to make an irregular form?
1. Find an irregular picture with a transparent background and set it to the background image of the form. Backgroundimage,backgroundimagelayout.
2. Set the transparent color of the form to match the background color of the form. TransparencyKey
3. Remove the frame. FormBorderStyle = None.

Case three: How to make a tray icon?
4. Drag the control. Drag NotifyIcon from common controls in the Toolbox onto the form.
5. Set the icon and text. Right-click on the NotifyIcon below the form, select Properties, set icon and text

Case FOUR: How to add a menu to a pallet?
6. Make a menu. Drag the ContextMenuStrip onto the form from the menus and toolbars in the Toolbox. Add menu items (set text, write code).
7. Attach the menu to the tray. Right-click on the NotifyIcon below the form, select Properties, and set the ContextMenuStrip property to the menu above.

VS Window Maker

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.