I have several forms that appear during an intensive operation. For example, when a form pops up asking for something from the user and the user clicks OK, the chart form remains on the main screen, even if it is closed. How can I make it so that these graphs completely disappear?
I would recommend doing heavy work in the background (e.g. BackgroundWorker), so the GUI thread is not blocked. Thus, the forms will be able to display screen updates during operation.
BackgroundWorker
, , , , . /, .
DoEvents(), , , DoEvents - , -, .
You can call the Refresh () method in the form of the main screen, which will cause the graphics to repaint.
Source: https://habr.com/ru/post/1750301/More articles:Convert a macro to an inline function - c ++GWT time / line formatting - javaSortDescription with custom property attached - wpfQt - How to place a QTextEdit with left and right margins in a QVBoxLayout? - c ++Python class initial questions - pythonadding space to the output file without having to read everything first - pythonShould we use LockOptions instead of LockMode in the sleep request? - lockingThe site works fine in Mozilla, but not in IE. My js file is incompatible with IE - javascriptFailed to hide WinDbg address - debuggingQuestion about timers and variable intervals - c #All Articles