Board index » delphi » IE's ActiveX controls

IE's ActiveX controls

When I create IE's activeX control called TWebBrowser(_V1) manually, it
doesn't seem to show itself... This is how I create it:

var
  Esko : TWebBrowser_V1;
begin
Esko := TWebBrowser_V1.Create(MainForm);
Esko.Name := 'Web';
end;

 

Re:IE's ActiveX controls


Hi Toni,

Toni Helenius skrev:

Quote

> When I create IE's activeX control called TWebBrowser(_V1) manually, it
> doesn't seem to show itself... This is how I create it:

> var
>   Esko : TWebBrowser_V1;
> begin
> Esko := TWebBrowser_V1.Create(MainForm);
> Esko.Name := 'Web';
> end;

Try something like this:

************

try
        WBIE:=TWebbrowser.Create(Self)  ;     //IE4.0
        TWinControl(WBIE).Parent:= Self;
        WBIE.Align := alClient;
        WBIE.OleObject.Navigate(TillfFilnamn,NoReadFromCache, B, C, D);
        Screen.Cursor := crDefault;
     except
           try
              WBIE_1:=TWebbrowser_v1.Create(Self)  ;   //IE3.0
              TWinControl(WBIE_1).Parent:= Self;
              WBIE_1.Align := alClient;
              WBIE_1.OleObject.Navigate(TillfFilnamn,NoReadFromCache, B,
C, D);
              Screen.Cursor := crDefault;
           except
                 ShowMessage('IE finns inte p? din dator!');

           end;
     end;                              

***************

Johnny Ahlin
johnny.ah...@abc.se
http://www.abc.se/%7Em8974

Other Threads