HELP NEEDED PLEASE PLEASE PLEASE!!!! 
Author Message
 HELP NEEDED PLEASE PLEASE PLEASE!!!!

Hi

I need to know how I can change the user's "regional settings" from within
my program. I need to change his time format to "HH:MM:SS" instead of the
default "hh:mm:ss:t" (I'm talking under correction).

I can't seem to find anything in the "help" section of VB, and neither under
the API viewer.

Thankyou in advance



Wed, 18 Jun 1902 08:00:00 GMT  
 HELP NEEDED PLEASE PLEASE PLEASE!!!!
Use the SetLocaleInfo API call.  I'm guesssing that you will need to use the
LOCALE_STIMEFORMAT or something similar for the LCType parameter.

--
Howard Henry Schlunder
AutoSigAmp Plug-In by Howard:
 Winamp is currently playing:
 Matchbox 20 - 3 AM


Quote:
> Hi

> I need to know how I can change the user's "regional settings" from within
> my program. I need to change his time format to "HH:MM:SS" instead of the
> default "hh:mm:ss:t" (I'm talking under correction).

> I can't seem to find anything in the "help" section of VB, and neither
under
> the API viewer.

> Thankyou in advance



Wed, 18 Jun 1902 08:00:00 GMT  
 HELP NEEDED PLEASE PLEASE PLEASE!!!!
Thanx!!!!



Quote:
> Use the SetLocaleInfo API call.  I'm guesssing that you will need to use
the
> LOCALE_STIMEFORMAT or something similar for the LCType parameter.

> --
> Howard Henry Schlunder
> AutoSigAmp Plug-In by Howard:
>  Winamp is currently playing:
>  Matchbox 20 - 3 AM



> > Hi

> > I need to know how I can change the user's "regional settings" from
within
> > my program. I need to change his time format to "HH:MM:SS" instead of
the
> > default "hh:mm:ss:t" (I'm talking under correction).

> > I can't seem to find anything in the "help" section of VB, and neither
> under
> > the API viewer.

> > Thankyou in advance



Wed, 18 Jun 1902 08:00:00 GMT  
 HELP NEEDED PLEASE PLEASE PLEASE!!!!
All I think you do is
a = Format(Time, "HH:MM:SS")
and  your done
please forgive me if I am wrong
I am only 13 years old.


Quote:
> Hi

> I need to know how I can change the user's "regional settings" from within
> my program. I need to change his time format to "HH:MM:SS" instead of the
> default "hh:mm:ss:t" (I'm talking under correction).

> I can't seem to find anything in the "help" section of VB, and neither
under
> the API viewer.

> Thankyou in advance



Wed, 18 Jun 1902 08:00:00 GMT  
 HELP NEEDED PLEASE PLEASE PLEASE!!!!
I've used the regobj.dll Active X server to access/modify the registry for
such things.
The following code should do what you need:

    Set objIntSetRegKey = RegKeyFromString("\HKEY_CURRENT_USER\Control
Panel\International\")

For Each objRegValue In objIntSetRegKey.Values
        If objRegValue.Name = "sTimeFormat" Then
            objIntSetRegKey.Value = "HH:MM:SS"
            Exit For
        End If
    Next objRegValue

Hope that helps,
Barry


Quote:
> Hi

> I need to know how I can change the user's "regional settings" from within
> my program. I need to change his time format to "HH:MM:SS" instead of the
> default "hh:mm:ss:t" (I'm talking under correction).

> I can't seem to find anything in the "help" section of VB, and neither
under
> the API viewer.

> Thankyou in advance



Wed, 18 Jun 1902 08:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP, PLEASE HELP,

2. Can anyone HELP me PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE

3. Please, Please, Please I need help working with dates

4. Please, Please, Please I need your help with Winsock

5. EnumEnhMetaFile Help Needed! (Please Please Please)

6. PLEASE HELP PLEASE HELP PLEASE HELP

7. Please Please help !!! Crystal Report Help Needed

8. Design Help PLEASE PLEASE PLEASE!

9. Please Please PLEASE HELP!!!!!

10. URGENT HELP PLEASE PLEASE PLEASE???

11. Please please please, help me :-)

12. Please, please, please help!!

 

 
Powered by phpBB® Forum Software