Clear a WebBrowser's History????
-
Is there a way to clear the history of a webbrowser? I have a winform that uses a webbrowser, but when I go from one process to another I'd like its history to be cleared so that the back button goes no further than the current process's first page.
-
Is there a way to clear the history of a webbrowser? I have a winform that uses a webbrowser, but when I go from one process to another I'd like its history to be cleared so that the back button goes no further than the current process's first page.
FoxholeWilly wrote:
back button goes no further than the current process's first page
The back button history is persistent across processes? Can someone confirm this? It sure doesn't work that way in IE or Firefox browser desktop instances.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
-
Is there a way to clear the history of a webbrowser? I have a winform that uses a webbrowser, but when I go from one process to another I'd like its history to be cleared so that the back button goes no further than the current process's first page.
in your html page put the following history.forward this vil work good regards kalyan
-
FoxholeWilly wrote:
back button goes no further than the current process's first page
The back button history is persistent across processes? Can someone confirm this? It sure doesn't work that way in IE or Firefox browser desktop instances.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
You assume too much with the word "process." I am using it in its generic form. I have a webbrowser, a user pushes a button, and it displays some content, then does something completely different, then pushes a button, and other content is displayed in the webbrowser. I would like to clear the navigation history so that when the user pushes "back" he does not go beyond the initial page from the second time the webbrowser was used.
-
You assume too much with the word "process." I am using it in its generic form. I have a webbrowser, a user pushes a button, and it displays some content, then does something completely different, then pushes a button, and other content is displayed in the webbrowser. I would like to clear the navigation history so that when the user pushes "back" he does not go beyond the initial page from the second time the webbrowser was used.
FoxholeWilly wrote:
You assume too much with the word "process."
Yeah sorry about that. :-O I got your original reply by email. I can understand how you thought that. I have used WebBrowser in applications where I create new instances of it during the lifetime of the application (process). I thought you were meaning that and the history was still present across the different instances. I was interested since it would effect the behavior of my applications.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
-
FoxholeWilly wrote:
You assume too much with the word "process."
Yeah sorry about that. :-O I got your original reply by email. I can understand how you thought that. I have used WebBrowser in applications where I create new instances of it during the lifetime of the application (process). I thought you were meaning that and the history was still present across the different instances. I was interested since it would effect the behavior of my applications.
"What classes are you using ? You shouldn't call stuff if you have no idea what it does" Christian Graus in the C# forum led mike
Sorry about the original reply, it was one of those stupid and impulsive messages that one regrets the moment the "Post" key is pushed. I figured I would have to just dispose and recreate the webbrowser control each time, but was hoping there was a simple yet illusive command that would clear the history, something like WebBrowser.ClearHistory() (hint, hint, Microsoft)