Fórum Como abrir link em uma nova janela do Internet Explorer #185897
02/10/2003
0
Como q eu faço para abrir um link da web numa nova janela, pois da maneira que estou fazendo abre numa janela q já está aberta.
ShellExecute(self.WindowHandle,´open´,PChar(url),nil,nil, SW_SHOWNORMAL);
Obrigado...
Hell_gentleman
Curtir tópico
+ 0Posts
02/10/2003
Luizfernando777
colocar ComObj
declarar uma variavel
IEApp: Variant;
Button1.OnClick
begin
IEApp := CreateOLEObject(´InternetExplorer.Application´);
IEApp.visible := true;
IEApp.Top := 0;
IEApp.Left := 0;
IEApp.width := screen.width;
IEApp.height := screen.height;
IEApp.Navigate(´http://www.ClubeDelphi.com.br´);
end;
Gostei + 0
03/10/2003
Hell_gentleman
Gostei + 0
03/10/2003
Luizfernando777
button1.click
var
buffer: String;
begin
buffer := ´http://www.clubedelphi.com.br´;
ShellExecute(Application.Handle, nil, PChar(buffer), nil, nil, SW_SHOWNORMAL);
end;
eu uso o Delphi 6 SP2
Gostei + 0
03/10/2003
Hell_gentleman
Gostei + 0
12/04/2007
Paty
Estou utilizado :
ShellExecute(Application.Handle, nil, PChar(buffer), nil, nil, SW_SHOWNORMAL);
pois, irá abir a URL com o browser padrao.
A opcao com CreateOLEObject(´InternetExplorer.Application´); so vai funcionar para o internet explorer.
Como voce consegui resolver o problema?
Gostei + 0
Clique aqui para fazer login e interagir na Comunidade :)