I need your help, I have an image (of type bitmap) already established at the design level (visualstudio) in the form (winform) in the property BackgroundImage
and in the property BackgroundImageLayout = Tile
so that in this way it repeats it throughout the form now well.
In my Load
runtime, I paint a series of type controls, PictureBox
but when the program is executed, it falters too much due to the drawing of said controls.
Ask; Is there a way to prevent this from happening? Thank you very much in advance.
I found the solution to my problem, what happens is that I had the following block of code in my code in the Load event:
And what it did was that when drawing a control it assigned the image to it and that caused that for each iteration and control drawing, there was that small latency.
I solved it in the following way:
So that the application knows that my form is not in design mode until the method that I am calling in load finishes loading.
Thanks, I hope someone finds it useful.