Jump to content
Sign in to follow this  
ChrisChuah

How to Clear TWebBrowser

Recommended Posts

HI

I remember asking something like this few months ago but somehow i could not find it in my profile.

Currently the Web browser is showing a page say http://localhost/mypage.htm

 

How can i clear browser to show nothing ?

webbrowser.navigate('none')?

 

regards

chris

 

Share this post


Link to post
1 minute ago, ChrisChuah said:

How can i clear browser to show nothing ?

webbrowser.navigate('none')?

Navigate('about:blank');

Share this post


Link to post

Oh Yes, now the browser can crash my application when i use a Navigate function. 

I place a try except block on the navigate function but somehow there is no exception error.

Where can i get any information about the crash?

 

regards

chris

Share this post


Link to post

it seems that if i put a web browser on Form2 and Form2 is run-time called to be created, then there will be an access violation on RecreateBrowser function called.

The way to go about it is to create a browser onCreate form2 function and insert the webbrowser component into it

Not sure if anyone is having this problem

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×