How to localize contents of a message box?

  • Thread starter Thread starter RD
  • Start date Start date
R

RD

got a messagebox that pops up saying in english.

If Text1.text = "" then
'The textbox is empty,
msgbox "Enter a value in your name field."

In french I would need "Inscrivez une valeur dans votre champ nom"

How would you do this using the resource files to contain the text?

thanks for any help.
Bob
 
Thanks for your help.

I'm trying to apply the info in the artcles to a Winforms app and am having
some difficulty with executing the vbc command to link the default resource
file strings.resources to my application.

My source code is located in c:\mysources
compiled binaries are by default going to "=====>\bin
the language resource files would normally go into "====>\en
and
"====>\fr folders

My application is in a solution
Loginapp in which there is a project called Loginapp the startup form is
frmLogin.vb.

I can't run the vbc command which I thought should be (from the docs)

vbc t:/exe /res:strings.resources Loginapp.vb The cause seems to be simply
because there is no loginapp.vb file that was created during the project's
creation or while developping it. What file should the last parameter in the
vbc command refer to? I tried everything available, nothing seems to work.
:-(

Thanks for any help

Bob
 
Back
Top