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
330
TimeLineView: How to determine which appointment is under the mouse click.
posted

Hi Guys,

How could I find out which appointment is under the mouse-down event? I am trying to find out which appointment the user right-clicked on.

The TimeLineView (winforms) does not have a .GetAppointmentFromPoint(e.X, e.Y); method?

Regds

Paul

Parents
  • 405
    posted

    Hi Paul,

    Not sure if this will work for the mouse down event, but I'm using this in the ultradayview_dragdrop event 

    TimeSlot ts = this.ultraDayView1.GetTimeSlotFromPoint(this.ultraDayView1.PointToClient(new Point(e.X, e.Y)));
    DateTime dt = this.ultraDayView1.GetVisibleDayFromPoint(this.ultraDayView1.PointToClient(new Point(e.X, e.Y))).Date;

    Gives me the date and time of the slot where i can drag drop stuff.

    Thanks,

    Karthik

Reply Children