I have a listbox in my winform, when an item in the listbox is selected, a value is placed into a textbox in the same Form. There my many items in my listbox which when selected, i want the text box to be empty so i can pass in the new value. 我如何检查用户是否点击了他们最初选择的项目以外的东西?我得到如下当前选择的项目:
var selectedItem = (ReportItems)listbox.selectedItem