如题,listbox只有selecteditem和selectedindex 属性.如何实现呢?
解决方案 »
- 高分求助,如闲分数不够,开贴再送 请高手帮忙将一个il的方法,转成c#的。谢谢
- 编了个程序报错无法将类型“int”隐式转换为“System.Windows.Thickness”
- 劳烦那位能介绍一些Marshal的用法?
- WPF UserControl 如何在非WPF中载入
- 线程正被中止?
- c#如何调用API写媒体播放器?
- The message filter indicated that the application is busy. (Exception from HRESULT: 0x8001010A (RPC_E_SERVERCALL_RETRYLATER))
- 数据库更新!!
- 迷一样的EndAcceptTcpClient。深坑!
- 想问下大家有这样的经历吗?
- C++写的DLL在C#中的调用问题?
- 发布新版牧月天涯(wwwfind)的控件(日历控件、验证码、分页控件、按钮控件、嵌入图片控件)
for (int i = 0; i < this.ListBox1.Items.Count; i++)
{
if (this.ListBox1.Items[i].Selected)
{
this.ListBox2.Items.Add(this.ListBox1 .Items [i]);
//this.ListBox1.Items.Remove(this.ListBox1.Items[i]);
list.Add(this.ListBox1.Items[i]);
}
}
for (int i = 0; i < list.Count; i++)
{
this.ListBox1.Items.Remove((ListItem )list[i]);
}