VS C# Form form image loading flickering

Recently, I am studying the front-end problem. First of all, the main control of the front-end is the Form form control. This control is generally the main interface displayed to the user. Add controls and so on from above. However, there is also a basic background image added on this form. , But after the background image is added, during the startup process, because of the continuous redrawing of the image, you can understand that as long as any control or other thing on the form is moved, the background image of the form will be renewed again Draw it again. When loading, there can be no controls on the form. Then the problem comes, because every time a control is loaded, it will cause a background picture to be drawn. When there are too many controls, a visual flicker will occur. People who don't understand feel that this software is very stuck.

Well, since this problem is so serious, the solution is actually already given in VS. For pictures, GIFs and other things, there are special image controls to accept, so that you don’t have to go back and forth. The drawing of the background image causes visual flicker problems, and for this flight attendant, it can also be used as a background image to maximize on the Form form, and it is guaranteed not to flicker.

Guess you like

Origin blog.csdn.net/weixin_37081112/article/details/109404452