TabControl闪烁的题目

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.Windows.Forms;

namespace MQXS.Forms
{

    public  class NewTabControl : TabControl
    {

        /// <summary>
        /// 
        /// </summary>
        public NewTabControl()
        {
            SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer, true); 
        }

        /// <summary>
        /// 
        /// </summary>
        protected override CreateParams CreateParams
        {
            get
            {

                CreateParams cp = base.CreateParams;
                cp.ExStyle |= 0x02000000;
                return cp;
            }
        }
    }

}

你可能感兴趣的:(TabControl闪烁的题目)