开发者

How to read all splitcontainers and i

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜