Multi Language: Error

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
 
C

Cor Ligthert

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
 
C

Cor Ligthert

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
 
H

hitendra15

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

hitendra
 
H

Herfried K. Wagner [MVP]

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...
 
H

Herfried K. Wagner [MVP]

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.
 
H

hitendra15

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top