[Solved] how i make listbox and choose the items from it? [closed]


You should use either

string captcha = listBox1.SelectedItem.ToString();

Or

int captchaIndex = listBox1.SelectedIndex;

In the code you posted, captcha contains a string representation of the listBox1.SelectedIndex instead of the item’s text.

0

solved how i make listbox and choose the items from it? [closed]