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,
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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.
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.