Example #1
0
        public Main()
        {
            InitializeComponent();
            _grid = new Grid();
            _grid.Resize += new EventHandler(g_Resize);
            this.Controls.Add(_grid);
            MakeControlPanel();

            this.FormBorderStyle = FormBorderStyle.FixedSingle;
            this.ShowIcon = true;
            this.MaximizeBox = false;
            g_Resize(null, null);
            this.MainMenuStrip.BackColor = Color.FromArgb(0, Color.White);

            this.SetStyle(ControlStyles.AllPaintingInWmPaint |
                ControlStyles.UserPaint |
                ControlStyles.OptimizedDoubleBuffer,
                true);
            this.BackColor = Color.FromArgb(0xea, 0xea, 0xee);
        }