473,394 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Multi Language: Error

' 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

Nov 21 '05 #1
9 2317
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
<hi********@gmail.com> schreef in bericht
news:10**********************@f14g2000cwb.googlegr oups.com...
' 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

Nov 21 '05 #2
Thanks cor
I tried your said way.....
but it still dosent work..

Nov 21 '05 #3
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
Nov 21 '05 #4
I am using VS.Net 2003.
I am Creating Winows Mobile application using VB smart device
application.

hitendra

Nov 21 '05 #5
<hi********@gmail.com> schrieb:
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...

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
Nov 21 '05 #6
<hi********@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.

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

Nov 21 '05 #7
Hitendra,

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

http://msdn.microsoft.com/library/de...balization.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" <no************@planet.nl>
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
<hi********@gmail.com> schreef in bericht
news:10**********************@f14g2000cwb.googlegr oups.com...
' 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


Nov 21 '05 #8
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

Nov 21 '05 #9
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/de...balization.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

Nov 21 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: R. Rajesh Jeba Anbiah | last post by:
I'm supposed to do a big portal with multi-language support and I'm decided to do my own instead of going for gettext. I have sort out few implementations; most of them uses global variables. I'm...
5
by: Gustaf Liljegren | last post by:
In IE (at least from version 5), you can change your prefered language, so that for example the Windows Update page appears in another language than the system default. Here's the process: Tools...
6
by: cody | last post by:
What are multi file assemblies good for? What are the advantages of using multiple assemblies (A.DLL+B.DLL) vs. a single multi file assembly (A.DLL+A.NETMODULE)?
3
by: Mark Bergman | last post by:
We have inherited a script which runs rsh (remote shell), taking parameters from a variable, and if attempting to run a multi-word command remotely, we get an error! See the example below which...
2
by: JollyK | last post by:
Hello friends, In a large asp.net project, I don't think it is a good idea for having one common resource file containing all localized strings for the whole application. I think a better...
7
by: Bart Schelkens | last post by:
Hi, what is the best way (or the most interesting) way to make my application multi-lingual? I have french, dutch and english users and they all want the menu's and the labels,... in their...
4
by: Alan Foxmore | last post by:
Hi everyone, I'm new to C# and I was hoping I could get some clarification on the syntax for jagged and multidimensional arrays. Here is my question: The following syntax is correct for...
2
by: Aussie Rules | last post by:
Hi, I have a site that Iwant to either display my text in english or french, based on the users prefernces ? I am new to webforms, but I know in winforms, this is pretty easy with a resource...
137
by: mathieu.dutour | last post by:
Dear all, I want to do multiprecision floating point, i.e. I want to go beyond single precision, double precision and have quadruple precision, octuple precision and the like, and possibly with...
14
by: =?ISO-8859-1?Q?Tom=E1s_=D3_h=C9ilidhe?= | last post by:
As far as I know, the C Standard has no mention of multi-threaded programming; it has no mention of how to achieve multi-threaded programming, nor does it mention whether the language or its...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.