Twebbrowser

After creating manualy webbrowser:
w1:=Twebbrowser.create(self);

None of the events of this component doesn't work.

What is the problem?
How to solve it?
LVL 3
f15iafAsked:
Who is Participating?
 
EpsylonConnect With a Mentor Commented:
If you use 'InsertControl(w1);' after creation, it becomes visible and the event will work.
0
 
edeyCommented:
I've found that when creating IE's yourself it helps to explicitly cast the object (w1) as a TWinControl.

GL
Mike
0
 
EpsylonCommented:
TWebBrowser must be visible to work. If you don't want that, use this UI-less parser:

http://www.euromind.com/iedelphi/uilessparser.htm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.