C# realizes the drag of the control, three methods are implemented for reference.