Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2001, 02:01 PM
paulholden paulholden is offline
Senior Member
 
Join Date: Jan 2001
Posts: 714
Default anyone know how to bring up control panel applets???

hi, first question on this forum, just wondering if anyone can help me with this;
how can you bring up the control panel applets in your program?? like the display properties, and time/date and stuff like that??
thanks alot to anyone who could answer. please email me with some help paulhuk@hotmail.com
THANKS!!!!!!

paul
Reply With Quote
  #2  
Old 01-10-2001, 04:17 PM
The Smurf The Smurf is offline
Member
 
Join Date: Jan 2001
Posts: 40
Default RE: anyone know how to bring up control panel applets???

Use the ShellExecute API to call Rundll32 with the following parameters:

shell32.dll,Control_RunDLL ,,

cpl app can be one of the following:

AppWiz.cpl (Add/Remove programs)
Desk.cpl (Display Properties)
Inetcpl.cpl (Internet Properties)
Intl.cpl (Regional Settings)
Joy.cpl (Joystick)
Main.cpl (Mouse Properties)
Mmsys.cpl (Multimedia)
Modem.cpl (Modem)
Odbccp32.cpl (ODBC Data Source)
Password.cpl (Passwords)
Sysdm.cpl (System Properties)
Themes.cpl (Desktop Themes)
Timedate.cpl (Date/Time)
Netcpl.cpl (Network)

Applet is a zero-based number used if the app you're trying to open contains more than one applet. Page is a one-based number used if the app you're trying to open contains more than one page.

Here's an example:

ShellExecute(Self.Handle,'open','rundll32.exe','sh ell32.dll Control_RunDLL Sysdm.cpl,0,2);

-- The Smurf
Reply With Quote
  #3  
Old 01-11-2001, 05:05 AM
PoseFant PoseFant is offline
Senior Member
 
Join Date: Jan 2001
Posts: 1,002
Default RE: anyone know how to bring up control panel applets???

Or ...

ShellExecute(Application.Handle,'OPEN','CONTROL',' NCPA.CPL',NiL,1);

Where the network dialog executes.


Regards

/Filip
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 08:42 PM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.