I'm trying to create a form that is < 112 pixels in width. I'm using vs2005 and .net 2.0. As you may know, vs does not let you go below 112 pixels.
I have been able to successfully set the minimum size in my code through the WndProc method and working with the WM_GETMINMAXINFO message. This allows me to resize the form interactively to a size smaller than 112, but I want to resize it programmatically and for some reason, even after setting the minimum, when I try to set the size property, I cannot get below 112.
I've searched for a while now and cannot find a working solution for this situation.
Perhaps someone can think of another control I can use to imitate the form control - it has an x - close button, title area and can contain buttons, and can act like a dialog box (floats).
Thanks
I have been able to successfully set the minimum size in my code through the WndProc method and working with the WM_GETMINMAXINFO message. This allows me to resize the form interactively to a size smaller than 112, but I want to resize it programmatically and for some reason, even after setting the minimum, when I try to set the size property, I cannot get below 112.
I've searched for a while now and cannot find a working solution for this situation.
Perhaps someone can think of another control I can use to imitate the form control - it has an x - close button, title area and can contain buttons, and can act like a dialog box (floats).
Thanks