如题。
我的窗体内还包括一些容器控件,我感觉应该不是控件的事,主要问题还在form上。但是问题出在哪?

解决方案 »

  1.   


    请问这个在哪里查看啊?是在form。designer。cs里面吗?
      

  2.   


    控件的字体我都是单独设置的。比如label设好的三号字,但是程序运行时就是小四号字
    能进一步说说吗?
      

  3.   

    另外我把form的生成代码贴出来,帮给看看
                this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
                this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
                this.ClientSize = new System.Drawing.Size(1012, 732);
                this.Controls.Add(this.groupBox1);
                this.Controls.Add(this.tabControl1);
                this.Controls.Add(this.groupBox2);
                this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
                this.KeyPreview = true;
                this.MaximizeBox = false;
                this.MinimizeBox = false;
                this.Name = "Form1";
                this.ShowIcon = false;
                this.ShowInTaskbar = false;
                this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
                this.Text = "";
                this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
                this.Load += new System.EventHandler(this.Form1_Load);
                this.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.Form1_KeyPress);
                this.groupBox1.ResumeLayout(false);
                this.groupBox1.PerformLayout();
                this.groupBox2.ResumeLayout(false);
                this.groupBox2.PerformLayout();
                this.tabControl1.ResumeLayout(false);
                this.tabPage2.ResumeLayout(false);
                this.tabPage2.PerformLayout();
                this.groupBox3.ResumeLayout(false);
                this.groupBox3.PerformLayout();
                this.ResumeLayout(false);