1
Vote

Designer Unhandled Exception

description

The calendar control throws an exception on any attempt at horizontal resizing. (See attached screenshot)
My platform: Visual Studio 2008 (VB.NET Project), Windows 7 (32 Bit)

file attachments

comments

BillyDRyan wrote Jun 22, 2010 at 8:21 PM

passing in a height of 0.

Add in a simple method to adjust rectangles

private static Rectangle AdjustBounds(Rectangle bounds)
    {
        Rectangle rec = new Rectangle(bounds.Left, bounds.Top, bounds.Width > 0 ? bounds.Width : 1, bounds.Height > 0 ? bounds.Height : 1);
        return rec;
    }

wrote Feb 14, 2013 at 6:33 PM