this is the code i use for get all controllers of my form.
foreach (Control c in this.Controls)
ComponentResourceManager resources = new ComponentResourceManager(typeof(Form1));
resources.ApplyResources(c, c.Name, new CultureInfo(lang));
but ,it only get panel. how i fix this...
1 Answer, 1 is accepted
answered on 30 Jun 2014, 10:28 AM
Thank you for writing.
Perhaps on the top level (in the form) you just have a panel, hence the observed behavior. Each control has its own Controls collection, so in order to iterate all controls, you need to iterate all Control's collections recursively:
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.