Hi
I am using Version 2010, The problem is I want to drag a item on timelineview but try the code
TimelineView.OwnerFromPoint(MousePosition).Name
on drag drop event, It gives me the two down owner name
Also can any body tell me how to override the method of edit Appointments which fire on double click of any Appointments
Thanks for reading
atifamin2002 said:t gives me the two down owner name
atifamin2002 said:Also can any body tell me how to override the method of edit Appointments which fire on double click of any Appointments
Thanks for reply
I think it is PointToScreen but it is again creating problem, but the PointToClient seems to be work. But it works only when I drop the list view item on the exect bottom of the above item
atifamin2002 said:I think it is PointToScreen but it is again creating problem, but the PointToClient seems to be work
The OwnerFromPoint method should definitely return an Owner when the point at the position you have highlighted in red is passed to it. If possible post a sample project and we can take a look.
Thanks for your reply
I am attaching timeline project with drag drop feture please take a look
Thanks for your time
You are calling PointToClient on the form, you have to call it on the control receiving the drag (UltraTimelineView)
I am done with drag & drop
Thank you for your help!
Hi Atif,
Were you able to implement the drag and drop functionality with the updated logic or do you have any questions with this matter?
NehaDeveloper Support EngineerInfragisticswww.infragistics.com/support
You need to change the DragDrop function of WinTimeLineView control as follows:
Private Sub ultraTimelineView1_DragDrop(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DragEventArgs) Handles ultraTimelineView1.DragDrop Dim owner As String owner = ultraTimelineView1.OwnerFromPoint(ultraTimelineView1.PointToClient(Control.MousePosition)).Key MessageBox.Show("Textbox drop on: " & owner & vbNewLine & "Which is wrong I want to get the owner which is on right left side i.e. (Andrew,Bob, Chris etc)")End Sub
Please note that in the function, instead of Me.PointToClient(Control.MousePosition)).Key, you are using ultraTimelineView1.PointToClient(Control.MousePosition)).Key.
Let me know if you have any questions with this matter.
Sorry I could not understand. Can you give me one line example please. I will really appreciate
I am using PoinToClient on the DragDrop Event of Timelineview
Thanks