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
1176
UltraMonthViewSingle Inserting with Drag&Drop
posted

hi to all

i have a calendar using UltraMonthViewSingle control and want to be able to drag and drop task name's into a certain day of month

but still cant figure out how to insert on my code

 

 

 

 

Private

 

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

UltraMonthViewSingle1.DragDrop

 

 

Dim dItem As String = e.Data.GetData(GetType(String)).ToString()

 

 

If dItem <> "" Then

Insert code goes here ???? any idea ???? imagine i have drop the item on july 5

 

 

 

End If

Thanks.

Parents
  • 69832
    Suggested Answer
    Offline posted

    I'm not sure what exactly you are trying to do here, but you can use the control's GetDayFromPoint method to know what date the user is dragging over, and then you can create an Appointment for that date using the UltraMonthViewSingle.CalendarInfo.Appointments.Add method.

Reply Children