From 5e5128dee49d2744b748dbfa4cab8a7c24d30a04 Mon Sep 17 00:00:00 2001 From: Peter Gill Date: Sat, 8 Feb 2025 11:58:01 -0330 Subject: [PATCH] Replace Refresh with Invalidate in DrawPanelPaint Modified DrawPanelPaint to use _DrawPanel.Invalidate() instead of _DrawPanel.Refresh(). This change aims to improve the repainting process by invalidating the panel, which sends a paint message to the panel rather than immediately refreshing it. --- RdlDesign/DesignCtl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RdlDesign/DesignCtl.cs b/RdlDesign/DesignCtl.cs index 96d76165..43af5889 100644 --- a/RdlDesign/DesignCtl.cs +++ b/RdlDesign/DesignCtl.cs @@ -1104,7 +1104,7 @@ private async void DrawPanelPaint(object sender, System.Windows.Forms.PaintEvent await Internal_DrawPanelPaint(); doGraphicsDraw = true; // HACK: async shenanigans, force a repaint where e.Graphics is still valid - _DrawPanel.Refresh(); + _DrawPanel.Invalidate(); } }