Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make a webbrowser control go blank in c#?

Initially when the webbrowser is just loaded onto a form , it is blank(ie white color) . Once we go to a particular website , is there a way to make it go blank again .

I tried going through the methods , but did not find one that would make this happen . Is there another way or am i missing something ?

like image 667
HelloWorld_Always Avatar asked Jul 21 '11 16:07

HelloWorld_Always


1 Answers

Give this a try:

webBrowser1.Navigate("about:blank");

like image 132
BinaryTox1n Avatar answered Sep 23 '22 19:09

BinaryTox1n