private void kryptonButton1_Click(object sender, EventArgs e)
        {
            User test = new User();           
            KryptonSplitterPanel kp= this .Parent as KryptonSplitterPanel;
            kp.Controls.Clear();
            kp.Controls.Add(test);
          
        }



 private void toolStripButton8_Click(object sender, EventArgs e)
        {
            tsAllNocheck();
            kryptonSplitContainer1.Panel2.Controls.Clear();
            User home = new User();
            kryptonSplitContainer1.Panel2.Controls.Add(home);
            toolStripButton8.CheckState = CheckState.Checked;
        }


转载于:https://my.oschina.net/caomenglong/blog/380017

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐