Example #1
0
 private void tabControl1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (tabControl1.SelectedIndex == 0)
     {
         Form frm = new dataview(this);
         frm.TopLevel = false;
         frm.Show();
         frm.Dock = DockStyle.Fill;
         panel2.Controls.Clear();
         panel2.Controls.Add(frm);
     }
     if (tabControl1.SelectedIndex == 1)
     {
         Form frm = new picprocessing(this);
         frm.TopLevel = false;
         frm.Show();
         frm.Dock = DockStyle.Fill;
         panel2.Controls.Clear();
         panel2.Controls.Add(frm);
     }
     if (tabControl1.SelectedIndex == 2)
     {
         Form frm = new datacorrelation(this);
         frm.TopLevel = false;
         frm.Show();
         frm.Dock = DockStyle.Fill;
         panel2.Controls.Clear();
         panel2.Controls.Add(frm);
     }
 }
Example #2
0
        //加载时显示数据展示界面
        private void Form1_Load(object sender, EventArgs e)
        {
            Form frm = new dataview(this);

            frm.TopLevel = false;
            frm.Show();
            frm.Dock = DockStyle.Fill;
            panel2.Controls.Add(frm);
        }