How to Launch default browser on a URL?
Answer / Avnish Kumar Awasthi
To launch the default browser on a URL in Delphi, you can use the ShellExec function. Here's an example:nn```delphinfunction OpenURL(const Url: string): Boolean;nvar
ShellProc: TShellExecuteResult;nbegin
ShellProc := ShellExec(0, PChar('open'), nil, PChar(Url), nil, SW_SHOWNORMAL, 0, nil);
if ShellProc.Success thenn Result := True
elsen Result := False;n end;nend;n``
| Is This Answer Correct ? | 0 Yes | 0 No |
Why won't the virtual key codes work in program?
How to Retrieve a users login name ?
How to use TADOTable Seek procedure?1
How to Change the owner of a component at runtime ?
How to Convert ASCII files to Paradox tables?
How to Change the default width/height of the editor?
How to execute a stored procedure with TIBSQL?
What is the tag property useful for?
How to Change the Windows wallpaper in code?
why Paradox slow on some computers and not on others ?
How to Get the current line number of a TMemo?
How to Avoid an Application Error when using EM_POSFROMCHAR ?