When I press the button on a page, the screen changes.
If you operate the webbrowser automatically, the screen will not move until you remove the method (button-click event on the form).
I tried refresh and update after pressing the button on the page, but it didn't work.
Would it be difficult for the webbrowser to change the screen once the method is removed?
visual studio express 2015c#
The screen will not move until you remove the method (button-click event on the form).
I don't understand the intent of the question, but in general, Windows Forms drawing and UI processing are single threaded.The OS and other components must quickly complete event processing and return control to the OS.
If you want to get back to the UI right away, why don't you make the method in the button asynchronous?
Why don't you start the timer when you press the button, get out of the button press process, and automatically operate the webbrowser one after another in the timer event?
© 2022 OneMinuteCode. All rights reserved.