用一个TIMER,不断遍历所有控件,并将控件.ToBitmap贴到总图
这段代码该如何写呢...
public void FindControl(Control ctrls)
{
foreach (Control c in ctrls.Controls)
{
主要就是这里。
}
}
这段代码该如何写呢...
public void FindControl(Control ctrls)
{
foreach (Control c in ctrls.Controls)
{
主要就是这里。
}
}
{
foreach (Control ct in ctrls)
{
dosomething()//想干的事的函数
if (ct.HasChildren)
{
FindControl(Control ctrls)
}
}
}
{foreach (Control c in ctrl)
{
if (c is TextBox)
{
}
if(c.HasChildren)
FindControl(c);
}
}
这段代码有人会不?