关于窗体最大化
我做了一个程序,当我点击最大化时,那些控件没有随之变大,请问该如何设置。 大家帮我看一下子吧 比如说一个窗体上有一个textBoxprivate void Form1_Load(object sender, System.EventArgs e)
{
this.oldHeight = this.Height - this.textBox1.Height ;
this.oldWidth = this.Width - this.textBox1.Width ;
this.oldLocation = this.textBox1.Location ;
}
private void Form1_Resize(object sender, System.EventArgs e)
{
this.textBox1.Height = (this.Height - this.oldWidth) ;
this.textBox1.Width = (this.Width - this.oldWidth) ;
this.textBox1.Location = new Point(this.oldLocation.X,this.oldLocation.Y);
} 原来如此啊
谢谢了 谢谢了[tk01]
页:
[1]
