Solved

vb.net - select items from listview

Posted on 2012-04-13
1
558 Views
Last Modified: 2012-04-13
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
Comment
Question by:XK8ER
1 Comment
 
LVL 85

Accepted Solution

by:
Mike Tomlinson earned 500 total points
ID: 37844715
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
C# SQL BULK INSERT CLASS 5 36
Image(7) 1 37
dynamic menu in asp.net c# 11 31
As soon as i click a button on the form,it mnimises. 11 20
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now