MinimumSize property does not work for MdiChild forms. It should work for all other types of forms. Microsoft is aware of this bug and have stated that it will be fixed in a future release. One work around developers have used is to check if the Form has been resized to a smaller size than MinimumSize (and resizing it back) in the Resize event handler for the child form.
private void ChildFrm_Resize(object sender, System.EventArgs e)
{
int CurrHt=this.Height;
int MinHt=this.MinimumSize.Height;
if( CurrHt <= MinHt)
{
CurrHt = MinHt;
return;
}
}
>Hello,
>
> I have a Windows form and have set the MinimumSize property. When I run the program I can go past the MinimumSize property value. Has anyone else had this problem? Is there another property that I need to set?
-----------------------------------------
Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.comwww.prenia.comWeblog: blogs.prenia.com/cathi