Finding a textvalue in an Index

  • Thread starter Thread starter gsb58
  • Start date Start date
G

gsb58

Hi!

On a form I have a ListView, lstMyView.

The list have values in column1 like:

06:00
06:30

and so on....

Now, when user click's an index, I'll write a message to StatusBar1
which index number was clicked. This is easy in VB.NET.

However, I would like to get the textvalue associated with the index
number, not the index number itself.

Anybody that knows how to extract the textvalue?

Me.Name
 
Forget it!

I discovered it. Incredibily easy:

strRes = lstMyView.SelectedItems.Item(intCounter).Text.ToString()
 
If you want to continue typing .tostring on all string type properties when
you use them, then go right ahead!
 
Back
Top