using the Move method of the form one can change the location of the window very quickly. For example, in the command button store the current Left and Top properties, then begin a loop that uses the Move method, the stored values and random numbers to shake the window.