Dragging and MouseMove

Posted on 2009-12-24
Medium Priority
Last Modified: 2013-11-26

I'm adding drag and drop functionality to a custom control that I made.
It is a custom treelist.

I have a MouseMove event that sets HoverIndex to the row that the mouse is hovering over, and the Paint function uses that to draw a box around that row. This works fine.

I have also programmed the drag and drop function to move the rows around the list.

However, whenever i'm dragging, the MouseMove event doesnt trigger, and therefore, whenever i'm dragging, the HoverIndex doesnt get updated.

Can anyone assist in getting MouseMove to trigger during a drag and drop?
Its vb.net 2005.


Question by:DanJourno
1 Comment

Accepted Solution

DanJourno earned 0 total points
ID: 26119155
Just found that the DragOver event provides Mouse position info and fires whenver the mouse moves.


Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
How can you see what you are working on when you want to see it while you to save a copy? Add a "Save As" icon to the Quick Access Toolbar, or QAT. That way, when you save a copy of a query, form, report, or other object you are modifying, you…
Suggested Courses
Course of the Month12 days, 15 hours left to enroll

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question