Posted 19 years ago
by Johny menmonic
![Avatar](https://secure.gravatar.com/avatar/a90d1c37aba753f6de5c7d4a7ee68cba.jpg?s=64&d=identicon&r=g)
Hello,
I want to localize my app to various languages.
When I set Form.Localizable to true and after that compile and run it's ok. But when I set a new language in Form.Language and compile and run, debugger rises an exception in this part:
//
// toolWindowContainer1
//
this.toolWindowContainer1.AccessibleDescription = null;
this.toolWindowContainer1.AccessibleName = null;
resources.ApplyResources(this.toolWindowContainer1, "toolWindowContainer1");
this.toolWindowContainer1.BackgroundImage = null;
///////////////////////////////
// NullReferenceException on the next line
///////////////////////////////
this.toolWindowContainer1.Controls.Add(this.searchToolWindow);
this.toolWindowContainer1.DockManager = this.mainDockManager;
this.toolWindowContainer1.Font = null;
this.toolWindowContainer1.Name = "toolWindowContainer1";
The bug is the same in your sample app when I set the language.
There might be some problem with satellite assemblies and resources, but don´t know.
Please help, I really need to localize.
I want to localize my app to various languages.
When I set Form.Localizable to true and after that compile and run it's ok. But when I set a new language in Form.Language and compile and run, debugger rises an exception in this part:
//
// toolWindowContainer1
//
this.toolWindowContainer1.AccessibleDescription = null;
this.toolWindowContainer1.AccessibleName = null;
resources.ApplyResources(this.toolWindowContainer1, "toolWindowContainer1");
this.toolWindowContainer1.BackgroundImage = null;
///////////////////////////////
// NullReferenceException on the next line
///////////////////////////////
this.toolWindowContainer1.Controls.Add(this.searchToolWindow);
this.toolWindowContainer1.DockManager = this.mainDockManager;
this.toolWindowContainer1.Font = null;
this.toolWindowContainer1.Name = "toolWindowContainer1";
The bug is the same in your sample app when I set the language.
There might be some problem with satellite assemblies and resources, but don´t know.
Please help, I really need to localize.