12-18-2019, 05:02 PM
(This post was last modified: 12-19-2019, 05:41 AM by SorenJensen.)
Hi again,
I have managed to optimize my code which then present a new problem with regards to FormResizing:
The FormResizing event is fired multiple times while dragging or pulling the form, meaning my code with relation to resizing is executed multiple times. Is there a way to delay the event firing until the final size is reached, so that the event is only fired once at the end of the resize operation. Recording the sizes (height and Width) at the resizing time, it seems as if the event is fired for every 16 pixels the width is changed. I have not checked the height yet...
UPDATE: The event i definitely fired for every 16 pixels the width is changed, especially when going from larger to smaller while when the other way (smaller to larger) the event is only fired once (it seems).
Regards
Soren
I have managed to optimize my code which then present a new problem with regards to FormResizing:
The FormResizing event is fired multiple times while dragging or pulling the form, meaning my code with relation to resizing is executed multiple times. Is there a way to delay the event firing until the final size is reached, so that the event is only fired once at the end of the resize operation. Recording the sizes (height and Width) at the resizing time, it seems as if the event is fired for every 16 pixels the width is changed. I have not checked the height yet...
UPDATE: The event i definitely fired for every 16 pixels the width is changed, especially when going from larger to smaller while when the other way (smaller to larger) the event is only fired once (it seems).
Regards
Soren