C# 两个重叠panel容器如何使用button转换上下层显示z在窗体的最...
private void btnJCBack_Click(object sender, EventArgs e){ this.pnlJC1.Visible = true;} private void btnJCNext_Click(object sender, EventArgs e){ this.pnlJC1.Visible = false;this.pnlJC2.Visible = true;} 即可,我刚写完的。肯定没问题!
C#windows forms中如何在一个窗体中指定模块处显示其他窗体,并且单击...
你写的没错,少写了个,void showform(Form rightfrom){ panel1.Controls.Clear();rightfrom.FormBorderStyle = FormBorderStyle.None;rightfrom.TopLevel = false;rightfrom.SetBounds(0, 0, this.panel1.Width, this.panel1.Height);panel1.Controls.Add(rightfrom);rightfrom.Show();} 这样就...