解决方案 »
- 为什么会有这个错误啊!!System.Windows.Forms.TextBox并不包含“AppendText”的定义
- WCF上传文件大小的问题
- 如何判断某个人是否在经纬度域内
- 求助:“UpdateMedicineProduct”方法没有采用“5”个参数的重载,大家看看这段代码怎么改!
- 关于treeview的一个小问题
- 如何学习C#
- WinForm 里面的TextBox 问题
- MouseMove事件为何这么[迟钝]?
- 再线等待,右键我的机器上的任意文件夹,为什么在属性页没有安全选项卡?
- 新手想问下,怎样获取调用的接口的返回值?
- 程序加了断点后,输出正确;反之出错……
- 大家来讨论讨论你们都是通过什么方法来限制软件的使用的
foreach (Control ctr in this.Controls)
{
if (ctr is PictureBox)
{
list.Add(ctr);
}
}
foreach(Control ctr in list)
{
this.Controls.Remove(ctr);
}
foreach (Control c in this.Controls)
{
if (c is PictureBox)
{
list.Add(c);
}
}
foreach(Control c in list)
{
this.Controls.Remove(c);
}this.Controls.Cast<Control>().Where(c=>c is PictureBox).ToList().ForEach(c => Controls.Remove(c));