Hi I have 50 splitcontainers.. i want to read all the splitc开发者_C百科ontainers & its panels programmatically...Is it possible...?
Because the below code only reads Splitcontainer4 & Panel1, But Iam looking to read all the splitcontainers and its panels programmatically...
foreach (Control Ctrl in this.splitContainer4.Panel1.Controls)
{
if (Ctrl is RichTextBox)
{
((RichTextBox)(Ctrl)).KeyPress += new KeyPressEventHandler(this.Common_KeyPress);
}
}
Thanks for ideas...
Regards PARAMU
Find all the splitcontainers see SO question here and check both panels for the desired controls.
加载中,请稍侯......
精彩评论