急 !!!!!!! checkbox 在事件中 用for循环找checkbox 控件 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 foreach (Control c in Controls){ if (c is CheckBox) MessageBox.Show(c.Name);} 我想用for 循环 如果第一个选中 我想判下一个也选中 总之 必须是for循环的! 谢谢 大神们! CheckBoxList控件for(int i=0;i <CheckBoxList1.Items.Count;i++){ if(CheckBoxList1.Items[i].Selected==true) { //进行相应操作 }} for (int i = 0; i < this.Controls.Count; i++) { if (Controls[i] is CheckBox) { // your code } } for(int i=0 ;i<Controls.lenght){if (Controls[i].gettype() == "CheckBox"){...}} Control[] array = Controls.Cast<Control>().ToArray();foreach (int i = 0; i < array.GetLength(0); i++){ if (array[i] is CheckBox) MessageBox.Show(array[i].Name);} for(int i=0 ;i<Controls.lenght,i++) C#串口接收程序 请问,如何在代码中给菜单控件添加子项,再添加子项,再.... 用那个谷歌翻译网站 在IE8下出现找不到main_zh-CN.js这个文件 保存IMAGE字段出现的错误,不知怎么回事 数组控件 谁来帮帮我啊!!!!!!!!! BEA的tuxedo多行记录问题? 怎么把“发送窗口消息”的内窗传到服务端去 图片二值化裁剪,请大牛指点 如何将contextMenu的BorderStyle变成FixedSingle? jquery设置disabled C#调用动态链接库的问题
{
if (c is CheckBox) MessageBox.Show(c.Name);
}
谢谢 大神们!
for(int i=0;i <CheckBoxList1.Items.Count;i++)
{
if(CheckBoxList1.Items[i].Selected==true)
{
//进行相应操作
}
}
for (int i = 0; i < this.Controls.Count; i++)
{
if (Controls[i] is CheckBox)
{
// your code
} }
{if (Controls[i].gettype() == "CheckBox")
{
...
}
}
foreach (int i = 0; i < array.GetLength(0); i++)
{
if (array[i] is CheckBox) MessageBox.Show(array[i].Name);
}