public Chart()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
// update control style
SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
}