Solved

Creating TWebBrowser on the run

Posted on 2003-11-13
3
295 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
Comment Utility
Hi,

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

Regards, Geo
0
 
LVL 17

Expert Comment

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

Accepted Solution

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

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now