Results 1 to 3 of 3

Thread: Regional Options

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179

    Regional Options

    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

  2. #2
    jim mcnamara
    Guest
    you can use the SetLocaleInfo api.

    Here is sample code:

    http://www.mvps.org/vbnet/code/locale/setlocaleinfo.htm

  3. #3
    PowerPoster
    Join Date
    Jul 1999
    Posts
    5,923
    You can open the windows dialog and let the user make the changes themselves if you'd rather
    VB Code:
    1. 'shows region settings tab
    2. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0"
    3.  
    4. ' displays the Numbers property page
    5. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,1"
    6.  
    7. 'displays the Currency property page
    8. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,2"
    9.  
    10. ' displays the Time property page
    11. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,3"
    12.  
    13. 'displays the Date property page
    14. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,4"
    15.  
    16. 'displays the Locales property page (NT only)
    17. Shell "rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,5"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width