Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Creating TWebBrowser on the run

Posted on 2003-11-13
3
Medium Priority
?
317 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 200 total points
ID: 9744684
MyBrowser := TWebBrowser.Create(Self);
TOleControl(MyBrowser).Parent := Self; // or Form1;
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Suggested Courses

704 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