【发布时间】:2012-09-21 21:08:00
【问题描述】:
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
【问题讨论】:
-
什么是“初始选择项”? “初始”什么时候发生?