How to shell to another app and have it appear in a delphi form

前端 未结 3 2622
既然无缘
既然无缘 2020-12-01 05:47

In Delphi I\'ve used ShellExecute for years to launch (and optionally wait for) other applications. Now though, I need to have one of these applications appear in one of my

3条回答
  •  孤城傲影
    2020-12-01 06:35

    var
      URL: string;
    begin
      URL:= DBMemoURL.Text;
      // ShellExecute(self.WindowHandle,'open', PChar(URL), nil, nil, SW_SHOW); //default browser
         ShellExecute(self.WindowHandle,'open','chrome.exe', PChar(URL), nil, SW_SHOW); 
    

提交回复
热议问题