المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to read the splitcontainers Programmatically ?



C# Programming
05-23-2011, 11:30 PM
Hi
I have 50 splitcontainers.. i want to read all the splitcontainers & 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
PARAMUhttp://www.barakasoft.com/script/Forums/Images/thumbs_up.gif