小弟刚接触windows的应用程序编程,请问下面的代码怎么转换为windows应用程序下的,主要是windows应用程序里没有ListItemforeach(ListItem em in this.SendMSG_userlist.Items)
{
em.Selected = false;
} ListItem item = this.SendMSG_userlist.Items[this.SendMSG_userlist.SelectedIndex];
this.userlineList.Items.Add(item);
this.SendMSG_userlist.Items.RemoveAt(this.SendMSG_userlist.SelectedIndex);
{
em.Selected = false;
} ListItem item = this.SendMSG_userlist.Items[this.SendMSG_userlist.SelectedIndex];
this.userlineList.Items.Add(item);
this.SendMSG_userlist.Items.RemoveAt(this.SendMSG_userlist.SelectedIndex);
解决方案 »
- 求教xsd.exe使用方法
- C# 有关 键盘事件 的问题。
- 用Microsoft Visual C# 2008 Express Edition的同学们怎么做安装程序?
- 请问如何让服务定时启动一个form
- 请问写好的.Net程序安装完以后为什么有时会缺少gacutil.exe和msvcr7.dll这2个文件?UP有分
- 不能下载???????????????????
- 快交工了,项目从.net 2005转到.net 2001时出现的问题,急啊!!!
- 有关IO的问题
- 大家讨论一下VB(not VB.net)和C#在做C/S结构应用程序时的优缺点
- 怎样做个MessageBox有确认,取消,确认继续,取消就退出函数
- [讨论]大家一般都怎么控制字符长度输入的
- 急!急!急! 关于登录页面很短时间就要求重新登陆的问题
remove也是。例如:
this.listBox1.Items.Add("add");
this.listBox1.Items.Add("ddd");
this.listBox1.Items.Add("dfd");
this.listBox1.Items.Remove("dfd");
yourlistbox.ClearSelected();如果去掉某一个,可以如下:
yourlistbox.SetSelected( index, false );