A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

[.Net (C#, Vb08] Get data in list box

1k views · started by Chad ·
#1
[.Net (C#, Vb08] Get data in list box
C#.net
for (int i = 0; i < listBoxName.Items.Count; i++)
{
MessageBox.Show(listBox1.Items[i].ToString());
}
[/i]


Vb.net 2008
Dim i as integer

For i = 0 to listBoxName.Items.Count - 1
MessageBox.Show(listBoxNames.Items(i).ToString)
Next
#2
Short, to the point. Nice share.
#3
Useful. And good :)

Some other people may not know this. Great post.
[.Net (C#, Vb08] Get data in list box | Logical Gamers Archive