Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

In an MDI application, the MDI childs MaximumSize and MinimumSize properties don seem to take effect. How can I restrict the size of my MDI child?

0
Posted

In an MDI application, the MDI childs MaximumSize and MinimumSize properties don seem to take effect. How can I restrict the size of my MDI child?

0

It appears that this behavior is a bug that will be corrected in a future .NET release. You can control the size of your child form by adding a Layout event handler for it. Here is a code snippet that imposes the minimum size that you set in its properties. You can also handle it by overriding the form’s WndProc method as explained in this Microsoft KB article.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123