public FrmMainAuto()
        {
            InitializeComponent();

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