Exemplo n.º 1
0
        public FrmMainAuto()
        {
            InitializeComponent();

            theMainBase         = new MainBase();
            this.DoubleBuffered = true;                         //设置本窗体
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景.
            SetStyle(ControlStyles.DoubleBuffer, true);         // 双缓冲
        }
Exemplo n.º 2
0
 private void FrmMainAuto_FormClosing(object sender, FormClosingEventArgs e)
 {
     theMainBase = null;
 }