[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 590
  • Last Modified:

vb.net - select items from listview

hello,
I have a button that select the next item from a listview each time..
but for some reason when I look at the listview the other items stays selected too..
how can I prevent that from happening?

Count += 1
lstMain.Items(Count).Selected = True
0
XK8ER
Asked:
XK8ER
1 Solution
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
Set the MultiSelect() property of the ListView to False:
http://msdn.microsoft.com/en-us/library/system.windows.forms.listview.multiselect.aspx

    "Gets or sets a value indicating whether multiple items can be selected. ... true if multiple items in the control can be selected at one time; otherwise, false. The default is true."
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now