tag:blogger.com,1999:blog-27659513.post1716516280523734602..comments2023-12-31T23:44:24.149+02:00Comments on FCIH: How to delete all data from controls in opened forms using C# ???Ramy Mahroushttp://www.blogger.com/profile/06875204608099539248noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-27659513.post-6091010013584222062008-05-18T22:44:00.000+03:002008-05-18T22:44:00.000+03:00thank you mohamed nabil for your hint, you can rep...thank you mohamed nabil for your hint<BR/>, you can replace this line :<BR/>string type = ctrl.GetType().ToString();<BR/>and switch statement with :<BR/>If ( ctrl is TextBox )<BR/>{<BR/>// some action<BR/>}Mohamed Abd El hafeezhttps://www.blogger.com/profile/14484046267576658574noreply@blogger.com