diff --git a/DarkUI/Controls/DarkComboBox.cs b/DarkUI/Controls/DarkComboBox.cs index 716ce4b..e1ee4b2 100644 --- a/DarkUI/Controls/DarkComboBox.cs +++ b/DarkUI/Controls/DarkComboBox.cs @@ -104,6 +104,8 @@ protected override void OnResize(EventArgs e) private void PaintCombobox() { + if (ClientRectangle.Width <= 0 || ClientRectangle.Height <= 0) + _buffer = new Bitmap(1, 1); if (_buffer == null) _buffer = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);