Solved

Creating TWebBrowser on the run

Posted on 2003-11-13
3
302 Views
Last Modified: 2012-05-04
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?
0
Comment
Question by:huferry
  • 2
3 Comments
 
LVL 17

Expert Comment

by:geobul
ID: 9738525
Hi,

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

Regards, Geo
0
 
LVL 17

Expert Comment

by:geobul
ID: 9738530
Or MyBrowser := TWebBrowser.Create(Self); instead, of course. The second line is the important one.
0
 

Accepted Solution

by:
Kumao earned 50 total points
ID: 9744684
MyBrowser := TWebBrowser.Create(Self);
TOleControl(MyBrowser).Parent := Self; // or Form1;
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question