以及我的代碼說明一切ListView中選定值C#
if (listView1.SelectedItems[0].Text == "")
{
MessageBox.Show(listView1.SelectedItems[0].Text);
MessageBox.Show("Please Select Value First", "Information", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
{
}
,但我得到的圖片 http://i.stack.imgur.com/nOXMY.png
你的代碼不能解釋everyting,你使用多選?或者你只是選擇1項? –
用戶將只選擇1個項目 –