Tell me how Drag and Drop works? How to add it so that you can drag the buttons on the form? And that is a very interesting feature.

And how to use the command correctly

Sleep 

    1 answer 1

    Perform a drag and drop operation in Windows Forms

    To control the activity or lifetime of the stream, it is necessary to solve a lot of problems. With this, Thread methods allow to cope. For example, quite often the flow must be suspended. This can be done by calling the Thread.Sleep method, which takes a single argument that represents the time (in milliseconds) that you want to suspend. Note: The Thread.Sleep method is static and cannot be called with an instance of the Thread object. For good reason. It is not allowed to call Thread.Sleep for any other stream, except for the currently executed one. The static method Thread.Sleep calls the static method CurrentThread , which then pauses this thread for a specified time.