V
V
Volodymyr S.2014-05-03 20:00:19
.NET
Volodymyr S., 2014-05-03 20:00:19

How to disable the window with the question of the appropriateness of the action when reloading the web page in C#?

In C#, in an object of class System.Windows.Forms.WebBrowser , the Refresh() method is called on a timer (once every 10 seconds ) . The problem is that when reloading pages for which data transfer was carried out, a window opens, as in the screenshot.
9cd54c26d5b74c3cb79c46391cb2df42.png
When I press "Repeat", I, of course, get the effect I want. But I need the reboot to be carried out automatically, without my intervention. How can I reboot without displaying the specified message? PS And yes, just in case ,
I’ll clarify that this is for automatically repeating one tedious action A in one online game B.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayorovp, 2014-05-04
@VYBGSS

It's best to use HttpWebRequest or HttpClient for automation purposes... But it's a bit more complicated than auto-refresh. And WebBrowser was outdated at the time of its appearance.
There is a much simpler option: the Opera browser. I don’t know if this feature remained in the new opera, but the old one definitely had an automatic page refresh that did not ask for any confirmation. I myself used it for the same purpose...
If you really want to make your own program - try Awesomium.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question