WinForm 里面ListBox的问题
生活随笔
收集整理的这篇文章主要介绍了
WinForm 里面ListBox的问题
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
一直在做B/S 结构的东西,很长时间没有再接触C/S 的了;
有如下代码,发现C/S 在用B/S的一些方法
private System.Windows.Forms.ListBox clbConditionCreate;
...
this.clbConditionCreate = new System.Windows.Forms.ListBox();
...
string str_SelectConditon="";
str_SelectConditon=(((System.Web.UI.WebControls.ListItem)this.clbConditionCreate.SelectedItem).Value.ToString().Trim());
把clbConditionCreate 选择内容的Value值保存到str_SelectConditon
有如下代码,发现C/S 在用B/S的一些方法
private System.Windows.Forms.ListBox clbConditionCreate;
...
this.clbConditionCreate = new System.Windows.Forms.ListBox();
...
string str_SelectConditon="";
str_SelectConditon=(((System.Web.UI.WebControls.ListItem)this.clbConditionCreate.SelectedItem).Value.ToString().Trim());
把clbConditionCreate 选择内容的Value值保存到str_SelectConditon
总结
以上是生活随笔为你收集整理的WinForm 里面ListBox的问题的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 美国物流管理协会更名标志全球物流进入供应
- 下一篇: 生活随笔[2005-06-08]