Determine what item was clicked in my ListBox?
How can I determine 开发者_StackOverflow中文版what item was clicked on my ListBox?
if (yourListBoxName.SelectedIndex!=-1) {
// do stuff with yourListBoxName.SelectedIndex
}
Without very basic information on what you want to do, this is very basic.
精彩评论