Reputation: 4919
Is it possible to force Internet Explorer_Server
to refresh it content?
What I have is a handler to that object in external application (like in my similar question)
I found a nice tutorial on CodeProject that shows how to do that in MFC, but I would like to do that from C#.
My question is: How to refresh Internet Explorer_Server
that is hosted in external application.
Upvotes: 1
Views: 922
Reputation: 4502
I can't test it right now, but I assume you are already referencing mshtml
assembly in your C# project?
I am betting if you experiment with the IHTMLDocument2.open
method you might find a way to do this. I am running out to the airport, so I can't experiment with his or test it right now. But this link has some useful info (note: while the link refers to win API code, that code is modeled in the .net implementation through IHTMLDocuement2
interface in the mshtml
assembly).
I have had good luck using the mshtml assembly in C# for other operations, although it took a little work and trial and error. Pay particular attention to the parameter for _BSTR as _SELF, and pass the current uri.
Upvotes: 1