c# winform listbox 如何 获取 当前 选中的值
有什么属性或方法?又或者有什么办法?
各位朋友能否给点代码参考或实现思路?
在线等!
我已经写了很多事件了!窗体一次比一次显示的慢!
非得用事件吗? 可以不用吧?
3楼也夸张了吧...一个界面上有那么多listbox如果每个都写循环,不崩掉就奇怪了!(巨卡无比!)
2楼说的3个属性我都用过了!
我是这样写的: String ParmValue = (string)this.listKehuliebiaomingcheng.SelectedItem; throw new Exception(ParmValue);
在这个语句前抛出异常捕获不了,但在这句话后面写个异常就能捕捉...
程序每到这里就几乎崩溃!所以我就在这里被郁闷到了...