/// <summary> /// Sets visual styles and form size and adds all controls. /// </summary> public MainForm() { Main = this; Lmode = "JPN"; InitializeComponent(); this.DoubleBuffered = true; SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint, true); UpdateStyles(); discEditItem.Click += new EventHandler(discEditItem_Click); mv = new mainView(this); menuTitleItem_Click(null, null); this.WindowState = FormWindowState.Normal; }