shandoosheri
0
Light Poster
Recommended Answers
Jump to PostYou need to capture the MouseDown and MouseUp event, set a boolean, and remember the original coordinates:
bool MouseIsDragging = false; point Start = new point(); private void MyForm_MouseDown(object sender, MouseEventArgs e) { MouseIsDragging = true; Start.X = e.X; Start.Y = e.Y; } private void MyForm_MouseUp(object sender, …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.