protected override void OnPaint(PaintEventArgs e) { //base.OnPaint(e); Graphics g = e.Graphics; LinearGradientBrush gb = new LinearGradientBrush (new Point(0, 0), new Point(this.ClientSize.Width, this.ClientSize.Height), Color.WhiteSmoke, Color.SkyBlue); gb.GammaCorrection = true; g.FillRectangle(gb, this.ClientRectangle); gb.Dispose(); g.Dispose(); } private void mainmenu_Load(object sender, EventArgs e) { System.Reflection.Assembly asm = System.Reflection.Assembly.GetExecutingAssembly(); System.Version ver = asm.GetName().Version; this.toolStripStatusLabel1.Text = string.Format("システムバージョン:{0}",ver.ToString()); this.SetStyle(ControlStyles.ResizeRedraw, true); this.SetStyle(ControlStyles.UserPaint, true); this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); }