コード例 #1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            this.DoubleBuffered = true;

            // Let's create a new tab control
            control = new ChromeTabControl();

            // Let's make the top bar transparent and look better
            ChromeTabControl.AeroFunctions.ChromifyWindow(this, control);

            // Add a handler for when the new tab button is clicked
            control.NewTabClicked += control_NewTabClicked;

            // Let's add it to the form
            control.Dock = DockStyle.Fill;
            this.Controls.Add(control);

            // Let's add 2 test pages to it
            control.TabPages.AddNoAnimate(new TestPage());
            control.TabPages.AddNoAnimate(new TestPage());
        }
コード例 #2
0
 internal override bool NewInstanceAttempted(ChromeTabControl.TabPage newInstance)
 {
     return true;
 }