public Form1() { InitializeComponent(); gfx = Graphics.FromHwnd(this.Handle); gfx.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; }