Multi Language: Error

  • Thread starter Thread starter hitendra15
  • Start date Start date
H

hitendra15

' Visual Basic
' Put the Imports statements at the beginning of the code module
Imports System.Threading
Imports System.Globalization
' Put the following code before InitializeComponent()
' Sets the culture to French (France)
Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR")
' Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR")
===================================================================
===================================================================
I tried this code but error messages are display when executing
application

errors are

CurrentCulture is not a member of 'System.threading.Thread'
CurrentUICulture is not a member of 'System.threading.Thread'
plz any one help me

Thanks Hitendra
 
Hitendra,

In my opinion your code should work, can you try it withouth the imports.


Threading.Thread.CurrentThread.CurrentCulture = _
New Globalization.CultureInfo("fr-FR")
Threading.Thread.CurrentThread.CurrentUICulture = New
Globalization.CultureInfo("fr-FR")

And please messageback when this works and when it does not works, because
your code should do that as well?

Cor
 
Hitendrai,

I tested it, before I sand it to you, so what version of VBNet are you using
and maybe you can show some more code.

Cor
 
I am using VS.Net 2003.
I am Creating Winows Mobile application using VB smart device
application.

hitendra
 
Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR")
' Sets the UI culture to French (France)
Thread.CurrentThread.CurrentUICulture = new CultureInfo("fr-FR")
===================================================================
===================================================================
I tried this code but error messages are display when executing
application

errors are

CurrentCulture is not a member of 'System.threading.Thread'
CurrentUICulture is not a member of 'System.threading.Thread'

Notice that these are compile-time errors...
 
I am using VS.Net 2003.
I am Creating Winows Mobile application using VB smart device
application.

'CurrentCulture' and 'CurrentUICulture' are not supported by the .NET
Compact Framework.
 
Thanks Herfried K. Wagner

Plz will you do one favor to be how do i create multilanguage
application using .NetCF it there is other way?
Hitendra
 
Back
Top