Running the Control Panel

In the Delphi program, we can run the Control Panel directly from the program that we created. To make a program like this follow the steps in the example below.

Example: create a form with a Button. Write a program listing on Button1 onClick

Uses ShellAPI;

procedure TF_ControlPanel.Button1Click(Sender: TObject);
begin
 ShellExecute(Handle,'Open','control', nil,nil,SW_SHOWNORMAL);
end;

No comments:

Post a Comment