E
EmJayEm
How do I change the culture settings of my aspx document written in vb.net
to UK English.
Thanks,
to UK English.
Thanks,
Karl Seguin said: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.CurrentCulture = c; //Will
automatically format dates and such
System.Threading.Thread.CurrentThread.CurrentUICulture = 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
Karl Seguin said: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.CurrentCulture = c; //Will
automatically format dates and such
System.Threading.Thread.CurrentThread.CurrentUICulture = 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
EmJayEm said: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.CurrentCulture = c
Line 15: System.Threading.Thread.CurrentThread.CurrentUICulture = c
Line 16: I have included the system.Globalization namespace.
Can you help?
EmJ.