public Launch() { this.DoubleBuffered = true; //设置本窗体 SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.AllPaintingInWmPaint, true); // 禁止擦除背景. SetStyle(ControlStyles.DoubleBuffer, true); // 双缓冲 InitializeComponent(); this.Cursor = HammerCursor.HammerUp(); LaunchUI launchUI = new LaunchUI(this); this.Controls.Add(launchUI); }
public void HammerUp(object sender, MouseEventArgs e) { this.Cursor = HammerCursor.HammerUp(); }
private void PicTitle_MouseUp(object sender, MouseEventArgs e) { mouseHold = false; this.Cursor = HammerCursor.HammerUp(); }