示例#1
0
        private void button7_Click(object sender, EventArgs e)
        {
            ContentPanel.Controls.Clear();
            AboutSettings AboutS = new AboutSettings();

            ContentPanel.Controls.Add(AboutS);
            ContentPanel.Dock = DockStyle.Fill;
        }
示例#2
0
        private void aboutWebSurfXtoriaToolStripMenuItem_Click_1(object sender, EventArgs e)
        {
            AboutSettings AboutX = new AboutSettings();

            AboutX.Dock = DockStyle.Fill;
            TabPage myTabPage = new TabPage();//Create new tabpage

            myTabPage.Controls.Add(AboutX);
            tabControl.TabPages.Add(myTabPage);
            tabControl.SelectTab(tabControl.TabCount - 1);
            myTabPage.Text = "About Xtorium";
        }