1

I'm using a

system.windows.forms.webbrowser

to login into facebook. When the next user logs in I want the login form to be totally blank and not have the name of the previous user in there. How can I do that?

Roland
  • 7,525
  • 13
  • 61
  • 124
  • 1
    try to clear the session as explained in this http://stackoverflow.com/questions/434469/how-to-clear-system-windows-forms-webbrowser-session-data – Damith Sep 15 '11 at 18:27

2 Answers2

0

The WebBrowser control stores Web pages from recently visited sites in a cache on the local hard disk. When the control navigates to a page, it saves time by displaying a cached version, if one is available, rather than downloading the page again. Use the Refresh method to force the WebBrowser control to reload the current page by downloading it, ensuring that the control displays the latest version.

slobodans
  • 859
  • 1
  • 17
  • 23
0

You could use JavaScript to do this (Not pretty but it does it in 1-2 lines of code).

The markup below is not correct, it is an example.

    WebBrowrower1.Navigate("javascript: void Document(somegetelementbyID/Tagname('').value = '')");
MisdartedPenguin
  • 258
  • 1
  • 2
  • 12