From 7ac360edd0489fb67f1dc741d0e5505c490455ad Mon Sep 17 00:00:00 2001 From: Jan Robas Date: Thu, 26 Mar 2020 19:39:09 +0100 Subject: [PATCH] Fixed resizing issue in DarkComboBox We have to clear the graphics buffer when resizing. --- DarkUI/Controls/DarkComboBox.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/DarkUI/Controls/DarkComboBox.cs b/DarkUI/Controls/DarkComboBox.cs index 88b9b51..716ce4b 100644 --- a/DarkUI/Controls/DarkComboBox.cs +++ b/DarkUI/Controls/DarkComboBox.cs @@ -95,6 +95,13 @@ namespace DarkUI.Controls PaintCombobox(); } + protected override void OnResize(EventArgs e) + { + base.OnResize(e); + _buffer = null; + Invalidate(); + } + private void PaintCombobox() { if (_buffer == null)