problem in setting the width of a form to 20

P

Paresh Dhakan

Hi !

I am facing a wierd problem in setting the width of a form to 20.

Suppose I create two forms Form1 and Form2.

Form1 is the container, meaning
this.IsMdiContainer = true;

Form2 is child form meaning,
f = new Form2();
f.Location = new Point(200,200);
f.MdiParent = this; //Form1 is the parent
f.Show();

I set the width of my Form2 to 20. Yet when it is displayed on Form1, its
width is much larger, way beyond 100. I checked all the properties for Form2
yet I am not able to get the Form2 of thinner width. FormBorderStyle of
Form2 is none. Is there any trick or am I not setting some property?

Regards,
Paresh.
 
A

AlexS

You can see system defined limits in SystemInformation. Afaik there are
details about min form size etc.

HTH
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top