高度和宽度C#面板

时间:2014-03-05 11:34:01

标签: c# height width panel

我有问题。 当我创建我的面板并且我要求尺寸(150; 150)并且我执行程序时我没有良好的尺寸。 所以,如果问我得到了智慧和高度(112; 122)..

你有理由这么做吗?

谢谢

this.Zone_Impression.BackColor = System.Drawing.Color.White;
this.Zone_Impression.Location = new System.Drawing.Point(10, 10);
this.Zone_Impression.Margin = new System.Windows.Forms.Padding(0);
this.Zone_Impression.MinimumSize = new System.Drawing.Size(150, 150);
this.Zone_Impression.Name = "Zone_Impression";
this.Zone_Impression.Size = new System.Drawing.Size(150, 150);
this.Zone_Impression.TabIndex = 0;

1 个答案:

答案 0 :(得分:0)

也许panel.AutoSize == true