18

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 ?

iCollect.it Ltd
  • 92,391
  • 25
  • 181
  • 202
HelloWorld_Always
  • 1,555
  • 3
  • 22
  • 32

2 Answers2

43

Give this a try:

webBrowser1.Navigate("about:blank");

BinaryTox1n
  • 3,486
  • 1
  • 36
  • 44
13

You'll need to convert "about:blank" to a uri in order to use BinaryTox1n's answer.

webBrowser1.Navigate(new Uri("about:blank"));
BinaryTox1n
  • 3,486
  • 1
  • 36
  • 44
Boston Fever
  • 141
  • 1
  • 5