private void Button1_Click (object sender, EventArgs e) {int RECORDX = this. Left; Specifies the left value of the form int recordy = this. Top; Specifies the top value of the form for (int i = 0; i < i++)//Jitter Count {if (i% 2 = = 0)//If I can divide 2 evenly {this. left = this. Left + 10; The left value of the form is added to the "else" or "{this". left = this. left-10;//the left side of the form is reduced by the value of if (i% 2 = = 0)//If I can divide 2 by {THIS.T OP = this. Top + 10;//form top value plus ten} else//otherwise {this. Top = this. top-10;//the top value of the form minus Ten} System.Threading.Thread.Sleep (30); Vibration frequency} this. left = RECORDX; Restores the initial state of this. Top = Recordy; <span style= "font-family:arial, Helvetica, Sans-serif;" >//</span><span style= "font-family:arial, Helvetica, Sans-serif;" > Restore initial State </span>}
C # form Jitter