using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace IntelligentControlForsx.MyControls.zm { public partial class ZMControl : UserControl { public ZMControl() { InitializeComponent(); //SetStyle(ControlStyles.UserPaint, true); //SetStyle(ControlStyles.AllPaintingInWmPaint, true); //SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲   //this.SetStyle(ControlStyles.OptimizedDoubleBuffer, true); //this.UpdateStyles(); } public virtual void DeActive() { } public virtual void Active() { } } }