using System; using System.Collections.Generic; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace BWP.WinFormControl { public class UButton : Button { protected override void OnClick(EventArgs e) { this.BackColor = Color.Aqua; this.Refresh(); try { base.OnClick(e); } finally { System.Threading.Thread.Sleep(200); this.BackColor = SystemColors.Control; this.Refresh(); } } } }