Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Vb.Net CheclistBox Current index

Posted on 2014-02-12
2
Medium Priority
?
308 Views
Last Modified: 2014-02-12
In a CheckListBox with some options like the following:

* Car
* Moto
* Boat
* Bike
In this example first item as index=0 and bike as index=3 (i don´t know if index is the correct way to say). How canget when click in each item the value of index.
0
Comment
Question by:rflorencio
2 Comments
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 1500 total points
ID: 39853625
SelectedIndices is the property that will give you indices of all the selected items

http://msdn.microsoft.com/en-us/library/system.windows.forms.listbox.selectedindices(v=vs.110).aspx
0
 

Author Closing Comment

by:rflorencio
ID: 39853978
Was not exactly what I wanted, however the example gave me an idea to solve the problem.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

885 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