diff --git a/AcrylicUI/Controls/AcrylicComboBox.cs b/AcrylicUI/Controls/AcrylicComboBox.cs index a4efdde..3e907f7 100644 --- a/AcrylicUI/Controls/AcrylicComboBox.cs +++ b/AcrylicUI/Controls/AcrylicComboBox.cs @@ -138,6 +138,9 @@ protected override void OnResize(EventArgs e) private void PaintCombobox() { + if (ClientRectangle.Width <= 0 || ClientRectangle.Height <= 0) + return; + if (_buffer == null) _buffer = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);