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#
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?
579 Understanding How to Configure Google API Key
631 Uncaught (inpromise) Error on Electron: An object could not be cloned
926 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
620 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.