Delphi中在新窗口打开网址的代码怎么写?

2025-03-13 01:35:16
推荐回答(2个)
回答1:

执行
ShellExecute(handle,'open','iexplore.exe','www.163.com','', 1); 试试

iexplore.exe 有参数可设置 带-new 就是打开新的IE进程 以上不行的话 你带 -new 参数试试

回答2:

ShellExecute(0, 'open', 'www.163.com', nil, nil, SW_SHOWNORMAL);
这个是用你的默认浏览器打开,不管是chrome还是ie还是firefox还是opera等等