I get the following error message:
Compiler Error Message: BC30188: Declaration expected.
Source Error:
Line 12:
Line 13: Dim c as new CultureInfo("en-GB")
Line 14: System.Threading.Thread.CurrentThread.CurrentCultu re = c
Line 15: System.Threading.Thread.CurrentThread.CurrentUICul ture = c
Line 16: I have included the system.Globalization namespace.
Can you help?
EmJ.
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:%2****************@TK2MSFTNGP14.phx.gbl...
it isn't much different:
Dim c as new CultureInfo("en-GB")
System.Threading.Thread.CurrentThread.CurrentCultu re = c
System.Threading.Thread.CurrentThread.CurrentUICul ture = c
CultureInfo is found in System.Globalization.
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"EmJayEm" <Wo*@eookie.com> wrote in message
news:0H******************@fe3.news.blueyonder.co.u k... Thanks but is code this in VB.net?
EmJ.
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:OK****************@TK2MSFTNGP12.phx.gbl... > set the thread's CurrentCulture and CurrentUICulture to en-GB:
>
> CultureInfo c = new CultureInfo("en-GB"); //creates a CultureInfo instance > for British English
> System.Threading.Thread.CurrentThread.CurrentCultu re = c; //Will
> automatically format dates and such
> System.Threading.Thread.CurrentThread.CurrentUICul ture = c; //Used by the > ResourceManager to get the correct XML File
>
> if you are creating a multilingual application, check out:
>
> http://openmymind.net/localization/index.html
> and
> http://openmymind.net/localization/index2.html
>
> Karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/
>
>
> "EmJayEm" <Wo*@eookie.com> wrote in message
> news:mU******************@fe3.news.blueyonder.co.u k...
>> How do I change the culture settings of my aspx document written in
>> vb.net
>> to UK English.
>>
>> Thanks,
>>
>>
>
>