摘要:
private static Point plocation = new Point(); public static void StartVibration(Form form)//Form 传入需要振动的窗体 { plocation = form.Location; for (int i = 1; i < 41; i++)//41,可以理解为震动的时间。注:时间需要被4取模=1 { if (i < 41) { switch (i % 4) { case 0: form.Location = plocation; break; case 1: form.Location = ne 阅读全文