huferry
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?
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?
Or MyBrowser := TWebBrowser.Create(Self); instead, of course. The second line is the important one.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
MyBrowser := TWebBrowser.Create(Form1);
MyBrowser.ParentWindow := Form1.Handle;
Regards, Geo