Build a good Windows program

Source: Internet
Author: User

jump from form A to B
1. Create an object of B
2. Call Show () to display the form
To write an event handler:
1. Select the control
2. Not by default select in the Event list

Button Control
Click mouse Click event
From form event:
load (executed when form loads)
fromloseed (executed when form is closed)
First, menu: MenuStrip
Properties:
Text : Type (& letter) ALT + Letter
Image: The icon to the left of the text
Shortcutkeys: Setting shortcut keys
Event: Click Default Event
Second, the tool bar: ToolStrip
usually a shortcut used in a menu item
Properties:
Text : Type (& letter) ALT + Letter
Image: Icon
Displaystyle: Whether to display text or pictures
imagesclalingsize: The size of the picture
textimagerelation: Picture and text display location
Event: Click Default Event
third, the value of the form:
transfer values from a form to form B
set a common variable in the B form
1. Create an object of form B
2.B Form object. Public variable = value
3. Call the show () of the B form Object
iv. radio button: Radiobox prefix RDO
Text : Display text
Checked: Whether bool type is selected
v. Date control: DateTimePicker prefix: DTP
Value: Gets the currently selected date
















Build a good Windows program

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.