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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
rwilson032697Commented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.