If you use Thread.Sleep
, your application does not process any window events, including redrawing. The proper way to do this is to use Timer
class. When A key is pressed, you should enable the timer and move controls in its Tick
event.
Alternatively, you can call Application.DoEvents
method after Thread.Sleep
, but it's a bad practice.