Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
95
UltraTimelineView OwnerFromPoint results in incorrect owner
posted

I am trying to create a timeline on which you can drop new items from a grid. When I handle the dragdrop event of the timelineview and get the OwnerFromPoint, I get an incorrect result. I get the owner from 3 rows below the dropped location. Furthermore, when I use the app from my secondary monitor, I get no results at all. Am I doing something wrong or is this a bug?

Below the code from the dragdrop eventhandler:

 

 

 

 

 

 

 

 

 

 

 

Private Sub UltraTimelineView1_DragDrop(ByVal sender As Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles

UltraTimelineView1.DragDrop

 

 

 

If e.Effect = DragDropEffects.Copy

Then

 

 

 

Dim moveData As GridRowMoveData = CType(e.Data.GetData(GetType(GridRowMoveData)), GridRowMoveData

)

 

 

 

Dim _owner As Owner = UltraTimelineView1.OwnerFromPoint(New Point

(e.X, e.Y))

 

 

 

Dim _date As Date? = UltraTimelineView1.DateTimeFromPoint(New Point

(e.X, e.Y))

 

 

 

MessageBox.Show(String.Format("item: {0} {1}"

, _owner, _date))

 

 

 

End

If

 

 

 

End

Sub

Parents
No Data
Reply Children
No Data