Solved

Creating TWebBrowser on the run

Posted on 2003-11-13
3
301 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 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