Internet Seite aufrufen

McFrag

Grünschnabel
hab ein kleines programm geschrieben das urls aus nem url grabber ausliest. nun will ich das beim doppelklick auf eine url browser aufgeht mit url. wie geht das??

per shellexecute bekomm ichs ned hin

"ShellExecute(handle, 'open', PChar(PathToBrowser+' '+url), nil, nil, SW_SHOWNORMAL);"

thx4help
 
Hi !

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls,ShellApi;
....


procedure TForm1.Label2DblClick(Sender: TObject);
begin
ShellExecute(Application.Handle, 'open', PChar('mailto:Ich@wars_nicht.de'), nil,
nil, sw_ShowNormal);
end;


procedure TForm1.Label1Click(Sender: TObject);
begin
ShellExecute(Application.Handle, 'open', PChar('http://www.was_auch_immer.de'), nil,
nil, sw_ShowNormal);
end;

So einfach ! ;)

Gruß raven ;-)
 
Zurück