Hello,
How can I change "Regional Settings" that in Control Panel
from Visual Basic. Regional Settings such as number appearance,
time format and so on ....
thanks
Printable View
Hello,
How can I change "Regional Settings" that in Control Panel
from Visual Basic. Regional Settings such as number appearance,
time format and so on ....
thanks
you can use the SetLocaleInfo api.
Here is sample code:
http://www.mvps.org/vbnet/code/locale/setlocaleinfo.htm
You can open the windows dialog and let the user make the changes themselves if you'd rather
VB Code:
'shows region settings tab Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0" ' displays the Numbers property page Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1" 'displays the Currency property page Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2" ' displays the Time property page Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3" 'displays the Date property page Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4" 'displays the Locales property page (NT only) Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5"