Regional Settings ... the Control Panel

Hello,
I need to be able to load the Regional
Settings dialog from the control panel.
I need this to be loaded lets say from
a button within a delphi program.
I just need the Regional Settings dialog
to just display.
Regards,
Frank
frwAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
rwilson032697Connect With a Mentor Commented:
Checked it out completely, for both Win95/98 and NT do this:

ShellExecute(Handle, 'open', 'rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0 ', '', Nil, SW_Normal);

Cheers,

Raymond.
0
 
rwilson032697Commented:
For Win95/98:

ShellExecute(Handle, 'open', 'rundll32.exe shell32.dll,Control_RunDLL regcpl.cpl', '', Nil, SW_Normal);


For Win NT
ShellExecute(Handle, 'open', 'control.exe','c:\winnt\system32\intl.cpl', Nil, SW_Normal);  

Cheers,

Raymond.

0
 
rwilson032697Commented:
I'm not 100% sure about the regcpl.cpl for Win95. Take a look in the windows\system32 directory at the *.cpl files - there should be one there of a similar name...

Cheers,

Raymond.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
rwilson032697Commented:
Oh yeah - add shellapi to your uses clause...

Cheers,

Raymond.
0
 
gandalf_the_whiteCommented:
listening
0
 
frwAuthor Commented:
I have tried running the above example
but does not start..It compiles okay
in Delphi 5 but nothing happens when
run...running Win98...any suggestions.
Frank
0
 
rwilson032697Commented:
DOH! Don't use ShellExecute! Do this:

winexec('rundll32.exe shell32.dll, Control_RunDLL intl.cpl,,0', sw_show);

Cheers,

Raymond.
0
 
frwAuthor Commented:
Well I hate to be a pain but this doesn,t work either.When run I get
an error 'Error in shell32.dll Missing
Entry'. I wonder if winexec instruction
is compatible with Windows 98.
Any help is appreciated.
Frank
0
 
rwilson032697Commented:
Amazingly, the WinExec line DOES work on NT, contrary to what these two MSDN articles say.

http://support.microsoft.com/view/dev.asp?kb=164787

http://support.microsoft.com/support/kb/articles/Q135/0/68.ASP

The reason for your error is the space after the first comma. The line should look like this:

winexec('rundll32.exe shell32.dll,Control_RunDLL intl.cpl,,0', sw_show);

Cheers,

Raymond.
0
 
frwAuthor Commented:
Thanks for all your help, i finally
realized that last night but didn,t
have time to repost my comment.
Frank
0
 
rwilson032697Commented:
No problems!

See you around...

Raymond.
0
All Courses

From novice to tech pro — start learning today.