2013-07-12 35 views

Trả lời

14

Với listbox.Items.IndexOf("abber")

Đó là:

int curIndex = listbox.Items.IndexOf("abber"); 
if(curIndex >= 0) 
{ 
    MessageBox.Show(listbox.Items[curIndex].ToString()); 
} 
5
int index = listBox1.Items.IndexOf("Specify string here"); 
Các vấn đề liên quan