check item in listview

  • Thread starter Thread starter Maarten
  • Start date Start date
M

Maarten

how do i check an item in a listview at runtime (not by cklicking on it with
mouse)

for example i have a button, and when i press it, al items in the list must
be checked.

kind regards Maarten
 
As follows:

For Each itm As ListViewItem In MyListView.Items
itm.Checked = True
Next

HTH
Regards
Simon Jefferies
mailto:simon[nospam]@cooltoolsonline.co.uk
-- remove [nospam] to email me --
 
Use the ListViewItem.Checked property.

how do i check an item in a listview at runtime (not by cklicking on it with
mouse)

for example i have a button, and when i press it, al items in the list must
be checked.

kind regards Maarten
 
Maarten,

Probably is this the one you miss
ListView1.HideSelection = False

I hope this helps?

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top