Solved

Call to Windows Display Dialog

Posted on 2001-06-11
4
151 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_
  • 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connection between libmysql.dll and MySQL Versions 7 97
How to debug For loops? 3 49
Firemonkey android show image from resource ? 1 41
Delphi...Split view - idea? 1 67
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

785 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