public DocumentMap() { ForeColor = Color.Maroon; SetStyle( ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint | ControlStyles.ResizeRedraw, true); Application.Idle += Application_Idle; }