ListBox Item Value

  • Thread starter Thread starter Frank
  • Start date Start date
F

Frank

How can I get the value property from the item collection
in a ListBox control. I know I can get the selected
value with listBox.SelectedValue, but how can I get the
value property of all the selected items?

I would like to loop through the list and look and the
values.

I wish something like listBox.Items.Value worked.

Any help would be great,
Frank
 
* "Frank said:
How can I get the value property from the item collection
in a ListBox control. I know I can get the selected
value with listBox.SelectedValue, but how can I get the
value property of all the selected items?

I would like to loop through the list and look and the
values.

I wish something like listBox.Items.Value worked.


\\\
((CustomItemType)this.ListBox1.Items).Value = 22
///
 
Wow! You're are awesome and I am stupid! But I'm now
happy and stupid.

Thanks,
Frank
-----Original Message-----
* "Frank said:
How can I get the value property from the item collection
in a ListBox control. I know I can get the selected
value with listBox.SelectedValue, but how can I get the
value property of all the selected items?

I would like to loop through the list and look and the
values.

I wish something like listBox.Items.Value worked.


\\\
((CustomItemType)this.ListBox1.Items).Value = 22
///
 
Back
Top