About the screen transition after the button is pressed automatically in the webbrowser

Asked 2 years ago, Updated 2 years ago, 60 views

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 2015

c#

2022-09-30 14:08

3 Answers

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.


2022-09-30 14:08

If you want to get back to the UI right away, why don't you make the method in the button asynchronous?


2022-09-30 14:08

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-09-30 14:08

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.