-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: lacisum
Message 2 in Discussion

Hi 

The ListBox control provides a single-selection or multiple-selection list. To enable 
multiple selection, set the SelectionMode property to Multiple. 

To add items programmatically with image index 3
ListView1.Items.Add("List item text", 3)

To remove items programmatically 

Use the RemoveAt or Clear method of the Items property. The RemoveAt method removes a 
single item; the Clear method removes all items from the list. 
Removes the first item in the list

ListView1.Items.RemoveAt(0)
'Clears all items:
ListView1.Items.Clear()

The Windows Forms ListView control displays a list of items with icons. You can use a 
list view to create a user interface like the right pane of Windows Explorer. The 
control has four view modes: LargeIcon, SmallIcon, List, and Details. The LargeIcon 
mode displays large icons next to the item text; the items appear in multiple columns 
if the control is large enough. The SmallIcon mode is the same except that it displays 
small icons. The List mode displays small icons but is always in a single column. The 
Details mode displays items in multiple columns. The view mode is determined by the 
View property. All of the view modes can display images from image lists. 

The key property of the ListView control is Items, which contains the items displayed 
by the control. The SelectedItems property contains a collection of the items 
currently selected in the control. The user can select multiple items, for example to 
drag and drop several items at a time to another control, if the MultiSelect property 
is set to true. The ListView control can display check boxes next to the items, if the 
CheckBoxes property is set to true.

The Activation property determines what type of action the user must take to activate 
an item in the list: the options are Standard, OneClick, and TwoClick. OneClick 
activation requires a single click to activate the item. TwoClick activation requires 
the user to double-click to activate the item; a single click changes the color of the 
item text. Standard activation requires the user to double-click to activate an item, 
but the item does not change appearance. 


Regards
Raghu Chakkath




-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDOTNET/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to