开发者

How to read all splitcontainers and i

开发者 https://www.devze.com 2023-03-07 14:26 出处:网络
Hi I have 50 splitcontainers.. i want to read all the splitc开发者_C百科ontainers & its panels programmatically...Is it possible...?

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

精彩评论

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