Solved

Call to Windows Display Dialog

Posted on 2001-06-11
4
155 Views
Last Modified: 2010-04-06
I want to call the Windows Display Dialog from my Delphi Application how can I do that ?

Thanx

Martins

0
Comment
Question by:Martins_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Cesario
ID: 6178560
Hi,

I think you have a call a Function from rundll32..
I hope I found some stuff in Knowledge base

Best Regards

Cesario
0
 
LVL 8

Expert Comment

by:Cesario
ID: 6178566
Hi Martins,

try it with this Code:

WinExec('rundll32 shell32.dll, Control_RunDLL desk.cpl, , 0', SW_SHOW);

0
 
LVL 2

Accepted Solution

by:
peymanz earned 50 total points
ID: 6178753
Just a comment.
You should not use WinExec. WinExec is provided only for backwards compatibility with 16 bit versions of windows. 32 bit versions of windows should call CreateProcess or the ShellExecute functions:

uses shellapi;

ShellExecute(form1.Handle,'open', 'rundll32', 'shell32.dll, Control_RunDLL desk.cpl, , 0', nil, SW_SHOW);

you can also change the first parameter to 0 if you want desktop to be the owner of the dialog.

regards
// peymanz
0
 

Expert Comment

by:djadja
ID: 6180707
peymanz...
"just another comment" <G>
SW_SHOWNORMAL should be used when displaying a window for the first time (as per stated in the help)! :)
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question