Resource Location vb 2005 .net Expr Edition - multilanguage

  • Thread starter Thread starter spig.marco
  • Start date Start date
S

spig.marco

Hi to all,

I read from internet that doesn't exist "Generate Resource Location"
for vb 2005 .net EE. But can I do this with a manually procedure? And
How can I do? A can't find a simple/sample tutorial

thanks!

I want to make a simple application with multi-language ITALIAN and
English, where the user can chouse with a radio button it's language
and automaticaly the next form change labels and others.

thanks

Marco Spiga
 
I just read about this in the .Net Internationalization book by Guy
Smith-Ferrier. If you're serious, you should check out the book.

To do what you're trying to do, you have to (1) be able to get a list of
all forms in the app, and (2) reapply the new resources to each form when
the user changes the language.

If you're using .Net 2.0, the first is easy (cycle through
my.application.openforms).

There are two ways to deal with the second problem.

One is to use the ComponentResourceManager to apply the new resources to
each control. The effectiveness of that depends on the components found on
the form.

The second solution is to use Reflection to get a MethodInfo object for the
form's private InitializeComponent method, delete all the controls on the
form, save the form's position, and then invoke the InitializeComponent
method and restore the form's position.

Robin S.
 
Back
Top