Using the ListView control to display data

Source: Internet
Author: User

add data dynamically in the down list
Combbox. Items.Add ();//Add the contents of an item
Combbox. Items.clear ();//emptying the contents of the item
Form Pass Value:
when the B form is displayed in a, the item B form passes the value
1. Create an object of form B
2. Create a public property in the B form
3. Assigning a value to a public property in a B form
4. Show B form
One, the wrong point attribute
Anchor: Set the distance between the space and the edge of the form
Second, docking properties:
Dock: Where controls are docked in a form
three, multiple document forms: MDI
1. Set the IsMdiContainer of the parent form: true
2. Creating Child Form Objects
3. Set the parent form of the child Window object, set the property mdiparent to the parent form's Object
4. Show Subform
iv. ListView Control:
Properties:
Items: Setting Item contents
Text : Display the contents of the first column
imageidex: Image index, corresponding to the picture library (ImageList control)
SubItems: subkey, only displayed in Detailed View
View : Setting up Views
largeimagelist: Setting Large Icons
smallimagelist: Setting Small Icons
CoLumns: Set column, set column before detail view, add child
v. ImageList CONTROLS: Photo Gallery
Images: Setting up a picture
ImageSize: Setting the picture size

Using the ListView control to display data

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.