Moving or resizing a control over the form background causes lag
I have some moveable and resizable controls. If I move it while it’s on top of another control, the movement is smooth and good. When I drag it over the form background, the movement suddenly lags a lot. What could be causing this? video link (the background is the gaps between the controls)
Moving or resizing a control over the form background causes lag
I have some moveable and resizable controls. If I move it while it’s on top of another control, the movement is smooth and good. When I drag it over the form background, the movement suddenly lags a lot. What could be causing this? video link (the background is the gaps between the controls)
Moving/Resizing a control over form background causes lag
I have some moveable and resize-able controls. If I move it while it’s on top of another control, it is smooth and good. When I drag it over the form background, the movement suddenly lags a lot. What could be causing this? video link (the background is the gaps between the controls)
C# Winforms Constructor being called when settting visible to true
Overall problem is a screen performance issue. Here is what I “think” I have found out. It appears the constructor gets ran again when setting visible to true? I am not 100% sure about that as I am new to performance profiling. When I am looking at a form that I pre-load that is not visible then when the form is supposed to be shown I set the visible property to true I see entries calling the Constructor again which I am really confused at why that would be happening. Based on what I have read is that OnLoad should be called which I don’t have anything in there but I do have a custom control that I made to be used for every button on the screen as this is a touch screen type situation. I waited a while before I tried to call on the screen I am trying to debug and then captured the performance metric in that time frame. What you would see is the custom buttons being loaded from the bottom right of the screen up to the top left and takes less than 1.5 seconds but still it’s slow enough it makes me question what Is actually happening.