feurich Posted November 27, 2003 Posted November 27, 2003 Can anyone tell me how to loop through a listbox and get the string values from it and not the selected index numbers??? Cire Quote Trust the Universe
aewarnick Posted November 27, 2003 Posted November 27, 2003 The Items property. foreach(string s in this.ListBox1.Items) { MessageBox.Show(s); } or for(int i=0; i<this.ListBox1.Items.Count; i++) { MessageBox.Show(this.ListBox1.Items+""); } Quote C#
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.