Resource Location vb 2005 .net Expr Edition - multilanguage

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • spig.marco@gmail.com

    #1

    Resource Location vb 2005 .net Expr Edition - multilanguage

    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

  • RobinS

    #2
    Re: Resource Location vb 2005 .net Expr Edition - multilanguage

    I just read about this in the .Net Internationaliz ation 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 ComponentResour ceManager 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 InitializeCompo nent method, delete all the controls on the
    form, save the form's position, and then invoke the InitializeCompo nent
    method and restore the form's position.

    Robin S.
    --------------------------
    <spig.marco@gma il.comwrote in message
    news:1175363998 .235609.229870@ p15g2000hsd.goo glegroups.com.. .
    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
    >

    Comment

    Working...