2013-07-12 13 views

Antwort

14

Mit listbox.Items.IndexOf("abber")

Das heißt:

int curIndex = listbox.Items.IndexOf("abber"); 
if(curIndex >= 0) 
{ 
    MessageBox.Show(listbox.Items[curIndex].ToString()); 
} 
5
int index = listBox1.Items.IndexOf("Specify string here");