Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

Multi Language: Error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hitendra15@gmail.com - 30 Oct 2004 06:35 GMT
' 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
Cor Ligthert - 30 Oct 2004 07:54 GMT
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

>' Visual Basic
> ' Put the Imports statements at the beginning of the code module
[quoted text clipped - 17 lines]
>
> Thanks Hitendra
hitendra15@gmail.com - 30 Oct 2004 08:56 GMT
Thanks cor
I tried your said way.....
but it still dosent work..
Cor Ligthert - 30 Oct 2004 09:39 GMT
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
hitendra15@gmail.com - 30 Oct 2004 10:08 GMT
I am using VS.Net 2003.
I am Creating Winows Mobile application using VB smart device
application.

hitendra
Herfried K. Wagner [MVP] - 30 Oct 2004 10:41 GMT
<hitendra15@gmail.com> schrieb:
>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.

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/

hitendra15@gmail.com - 30 Oct 2004 10:51 GMT
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
Cor Ligthert - 30 Oct 2004 10:58 GMT
Hitendra,

(I saw I added this message to the wrong message)

I thought, that it was not supported by the compact framework.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_evtuv/html/e
tcondeviceprojectglobalization.asp


However to be more sure of that, you can maybe try it in the newsgroup.

microsoft.public.dotnet.framework.compactframework

I hope this helps something,

Cor
Cor Ligthert - 30 Oct 2004 10:49 GMT
Hitendra,

I thought, that it was not supported by the compact framework.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_evtuv/html/e
tcondeviceprojectglobalization.asp


However to be more sure of that, you can maybe try it in the newsgroup.

microsoft.public.dotnet.framework.compactframework

I hope this helps something,

Cor

"Cor Ligthert" <notmyfirstname@planet.nl>

> Hitendra,
>
[quoted text clipped - 31 lines]
>>
>> Thanks Hitendra
Herfried K. Wagner [MVP] - 30 Oct 2004 10:40 GMT
<hitendra15@gmail.com> schrieb:
> Thread.CurrentThread.CurrentCulture = new CultureInfo("fr-FR")
> ' Sets the UI culture to French (France)
[quoted text clipped - 8 lines]
> 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...

Signature

Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.