Implementing data updates for Windows programs

Source: Internet
Author: User
Tags time in milliseconds

Multiple Document forms:
1. Set the parent form
set the property ismdicontainer to True
2. Show Subform
A. Creating an object of a subform
B. Setting the parent form of a subform object
mdiparent: Parent Form Object
c. Show Subform Call Show () method
ListView:
1.Items:
Add () method, adding item contents, first column
other columns with Subitems:add (), add child content, correspond to other columns
2.Colmns: Set column header
3.view: Set to detail (Details view) to display column headers
4.LargeImageList: Set Large Icons
5.SmallImageList: Set Small Icons
Enumeration data: A set of descriptive names that correspond to a set of numbers
1. Define a limited set of values that cannot contain methods
2. Constrain the possible values
second, declaring enum type:
access modifier enum enum name
  {
name 1=x, name 2=y
   }
Note: Each name corresponds to a set of numbers, the default is 0, followed by 1, you can specify a number for each name
Type Conversions
1. Enumeration name converted to integer type
2. The character type is converted to an enumeration type: (enum type) Enum.parse (typeof (enum type), "enumeration by name");
Example: 0415SHANGWUCHOP4, the word fourth chapter inside
Three, PictureBox: Show Pictures
Properties: Image: Set picture
SizeMode: Setting picture mode
Four, form mode:
1. Mode form: ShowDialog () display. The focus cannot be switched to another form as long as the form is displayed
2. Non-modal form: Show () display, each form can switch focus arbitrarily
Five, Timer: timer
Properties:
1.InterVal: Set interval time in milliseconds
2.Enable: Start or stop timer
Event:
trigger once every interval so long

Implementing data updates for Windows programs

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.