This one is from a WinForm listbox which has an arraylist as a
datasource (and the objects in the arraylist are objects (MemberType).
Dim selMemberType As MemberType
For Each selMemberType In Me.lstMemberType.SelectedItems
Do something....
Next
This one is from a WebForm.
Dim oItem As ListItem
For Each oItem In Me.lstRolesSelected.Items
If oItem.Value > 0 Then .....
Next
Jon
> -----Original Message-----
> From: Aebischer, Joseph F [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 04, 2002 11:29 AM
> To: dotnet
> Subject: VB.NET code fragment
>
>
> Hello,
>
> Anyone have some code fragments that show how to determine
> which entries in a bultiple select listbox have been selected
> by the user?
>
> Thanks...Joe
>
> ---
> You are currently subscribed to dotnet as:
> [EMAIL PROTECTED] To unsubscribe send a blank email to
> %%email.unsub%%
>
> ---------
> Administrated by 15 Seconds : http://www.15Seconds.com
> List Archives/Search : http://local.15Seconds.com/search
> Subscription Information : http://www.15seconds.com/listserv.htm
> Advertising Information: http://www.internet.com/mediakit/
>
>
>
---
You are currently subscribed to dotnet as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
---------
Administrated by 15 Seconds : http://www.15Seconds.com
List Archives/Search : http://local.15Seconds.com/search
Subscription Information : http://www.15seconds.com/listserv.htm
Advertising Information: http://www.internet.com/mediakit/