Link to home
Start Free TrialLog in
Avatar of huferry
huferryFlag for Netherlands

asked on

Creating TWebBrowser on the run

HI,

I'm trying to create TWebBrowser on the run but I didn't succeeded because TWEbBroswer's
Parent property is not the same with the other WinControl, I cannot assign the Parent to it.

MyBrowser := TWebBrowser.Create(Self);
MyBrowser.Parent := Form1 Ā <-- does not work.

Can anyone help me, please?
Avatar of geobul
geobul

Hi,

MyBrowser := TWebBrowser.Create(Form1);
MyBrowser.ParentWindow := Form1.Handle;

Regards, Geo
Or MyBrowser := TWebBrowser.Create(Self); instead, of course. The second line is the important one.
ASKER CERTIFIED SOLUTION
Avatar of Kumao
Kumao
Flag of Japan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial