Click here to Skip to main content
16,010,553 members
Home / Discussions / C#
   

C#

 
GeneralRe: getting tiff image dimension Pin
subai20-May-08 18:33
subai20-May-08 18:33 
AnswerRe: getting tiff image dimension Pin
Big Daddy Farang20-May-08 10:20
Big Daddy Farang20-May-08 10:20 
GeneralRe: getting tiff image dimension Pin
subai20-May-08 18:32
subai20-May-08 18:32 
Questionconvert linkbutton CommandArgument to sender object Pin
yesu prakash19-May-08 20:30
yesu prakash19-May-08 20:30 
AnswerRe: convert linkbutton CommandArgument to sender object Pin
Christian Graus19-May-08 20:41
protectorChristian Graus19-May-08 20:41 
QuestionDatagridview Error Pin
Wajihs19-May-08 20:19
Wajihs19-May-08 20:19 
AnswerRe: Datagridview Error Pin
Programm3r19-May-08 20:24
Programm3r19-May-08 20:24 
QuestionHow to Read All controls in a Form(Including child controls) Pin
Sababathi Balakrishnan19-May-08 20:10
Sababathi Balakrishnan19-May-08 20:10 
Hi,
I want to apply theme for an application. I want to read all controls inside the form
I'm using this code to get controls.
public void ApplyTheme(object ob)
{
    System.Windows.Forms.Form f = (System.Windows.Forms.Form)ob;
    foreach (System.Windows.Forms.Control ctr in f.Controls)
     {
      //Some coding for apply theme
     }
 }


By using the above code, I can read only parent controls inside the form, can't read the child controls,
Can anybody give me a solution to read all controls including child inside a child also.

Thanks in advance.

Sababathi B

Software Developer as well as Team Coordinator, Working for eXinfoTech

AnswerRe: How to Read All controls in a Form(Including child controls) Pin
Christian Graus19-May-08 20:16
protectorChristian Graus19-May-08 20:16 
AnswerRe: How to Read All controls in a Form(Including child controls) Pin
Spunky Coder19-May-08 20:21
Spunky Coder19-May-08 20:21 
GeneralRe: How to Read All controls in a Form(Including child controls) Pin
Christian Graus19-May-08 20:28
protectorChristian Graus19-May-08 20:28 
GeneralRe: How to Read All controls in a Form(Including child controls) Pin
Spunky Coder19-May-08 20:40
Spunky Coder19-May-08 20:40 
GeneralRe: How to Read All controls in a Form(Including child controls) Pin
Sababathi Balakrishnan21-May-08 19:39
Sababathi Balakrishnan21-May-08 19:39 
AnswerRe: How to Read All controls in a Form(Including child controls) Pin
darkelv19-May-08 20:37
darkelv19-May-08 20:37 
QuestionHardcoding Pin
Angelinna19-May-08 20:00
Angelinna19-May-08 20:00 
AnswerRe: Hardcoding Pin
Programm3r19-May-08 20:03
Programm3r19-May-08 20:03 
GeneralRe: Hardcoding Pin
Angelinna19-May-08 20:11
Angelinna19-May-08 20:11 
GeneralRe: Hardcoding Pin
DaveyM6919-May-08 20:39
professionalDaveyM6919-May-08 20:39 
QuestionDesigning GUI using background image Pin
N a v a n e e t h19-May-08 19:51
N a v a n e e t h19-May-08 19:51 
AnswerRe: Designing GUI using background image Pin
Programm3r19-May-08 20:05
Programm3r19-May-08 20:05 
GeneralRe: Designing GUI using background image Pin
N a v a n e e t h19-May-08 20:16
N a v a n e e t h19-May-08 20:16 
GeneralRe: Designing GUI using background image Pin
Programm3r19-May-08 20:21
Programm3r19-May-08 20:21 
QuestionRight Click on DataGrid Pin
Programm3r19-May-08 19:49
Programm3r19-May-08 19:49 
AnswerRe: Right Click on DataGrid Pin
Spunky Coder19-May-08 20:05
Spunky Coder19-May-08 20:05 
GeneralRe: Right Click on DataGrid Pin
Programm3r19-May-08 20:22
Programm3r19-May-08 20:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.