List/Combo box

anchoricex

New member
Joined
Nov 4, 2005
Messages
1
Programming Experience
Beginner
How can i figure out how many lines are in a list/combo box so that i can write each line to its own string?
 
The Items.Count property is the number of items. If you've added String objects to the control then each item is already its own string. Otherwise, you would the displayed strings like this:
VB.NET:
        For Each item As Object In Me.ComboBox1.Items
            MessageBox.Show(Me.ComboBox1.GetItemText(item))
        Next
 
Back
Top