110,535
社区成员
发帖
与我相关
我的任务
分享
private void Form1_SizeChanged(object sender, EventArgs e)
{
treeView1.Size = new Size(this.Size.Width / 2, this.Size.Height / 2);//田字型你就用父窗体一半的比例吧
treeView2.Location = new Point(treeView1.Location.X + treeView1.Width + 6, treeView1.Location.Y);
treeView3.Location = new Point(treeView1.Location.X, treeView1.Location.Y + treeView1.Height + 6);
treeView4.Location = new Point(treeView1.Location.X + treeView1.Width + 6, treeView1.Location.Y + treeView1.Height + 6);
treeView2.Size = treeView1.Size;
treeView3.Size = treeView1.Size;
treeView4.Size = treeView1.Size;
}