Jump to content
Software FX Community

Determining DragDrop Location


Recommended Posts

I've been trying to implement some drag-drop functionality for my charting application.  I've used the following code in the MouseMove event for the control to determine the location of the mouse:

e = chtData.HitTest(e.AbsoluteLocation.X, e.AbsoluteLocation.Y, True)

Dim objTarget as object = e.HitType()

Unfortunately in the DragDrop event handler the ChartFX.WinForms.HitTestEventArgs parameter is not provided.  The DragEventargs property available from the DragDrop Event does not provide 'AbsoluteLocation' functionality.

In the DragDrop event I need to identify if the user is trying to drop the data/object onto an Axis, into a Pane, etc.  For some reason I am having a tough time figuring out how to duplicate the logic from the MouseMove event in the DragDrop event.  Any help would be most appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...