Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 21st, 2004, 12:22 AM
Authorized User
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to change Regional Settings through VB

hi All,

I want to change the regional setting from VB, these settings will include LOCALE, Number appearance and some other fields...

i will be greatfull for helping.

thanks.


 
Old July 21st, 2004, 07:49 AM
Friend of Wrox
 
Join Date: Aug 2003
Posts: 205
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You will need to use win APIs. Get the free tool API-Guide from http://www.mentalis.org/agnet/apiguide.shtml. Look at the following APIs:

GetLocaleInfo
GetThreadLocale
SetLocaleInfo
SetThreadLocale

Another good web site is http://www.pietschsoft.com/programmi...ref/index.html

Yehuda
 
Old July 26th, 2004, 04:24 AM
Authorized User
 
Join Date: Dec 2003
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Yehuda,

i need some more help i managed to change the short date format through VB , but i am unable to find which LCTYPE constant i will use to change the LOCALE to Arabic(Saudi Arabia) and wat value im am required to assign.
i shal be really thankful to u






Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default newsletter settings vantoko BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 March 28th, 2008 03:19 AM
Regional and Language settings Bartek Beginning VB 6 1 November 13th, 2006 02:35 PM
Programmatically Change Printer Settings vempativenu Beginning VB 6 0 September 2nd, 2004 06:29 AM
How to change Date Settings in the Server reyboy SQL Server 2000 5 July 13th, 2004 07:49 PM
Regional settings in a multi-tier environment rkoegelenberg Classic ASP Databases 0 July 31st, 2003 11:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.