Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form and a bunch of controls inside it. I just want to know how can I minimize the form but not too small? I want the form to minimize depending on the controls inside it. I don't know how to do this.

The minimized button is working fine but if you place your cursor on the edges of the form and resize it by dragging it becomes so small. I want to avoid that. I want the form to be still resizable using the dragging of the mouse but I don't want it to be so small that you can't even see the controls inside it.

What I have tried:

I haven't tried anything yet. I don't have any idea how to do this right.
Updated 20-May-20 22:54pm

1 solution

Share this answer
lelouch_vi 2 21-May-20 22:05pm    
hi OriginalGriff, It's kinda funny when you're frustrated about something that you can't achieve, that you overlook the solution that is just right in front of your face. hahah.

I got it working now. All I have to do is to set the minimum size in the properties. Very simple isn't it? hahah I'm really sorry for asking that silly question. Thanks!
OriginalGriff 22-May-20 2:01am    
Not a problem, we all do it!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900