MonthCalendar and Context menu

mandelbrot

Centurion
Joined
Jul 1, 2005
Messages
194
Location
UK North East
MonthCalendar and Context menu - RESOLVED

Dear All,


I've had a look over the net, and at the forum for this, but cannot find a way of doing this (though it may be fairly straight forward)...

When a user right-clicks (to bring up a context menu) on a date on the MonthCalendar control, I want the SelectedDate to change to the one right-clicked prior to the contact menu being displayed.

I've tried a couple of things, but haven't found a way of doing this yet. If anyone has any tips or tricks I'd appreciate it.


Thanks in advance,
Paul.
 
Last edited:
Appologies - I've resolved this issue - I simply wasn't looking hard enough!

The trick is to obtain the HitTest from the MonthCalendar, obtaining the date and time and co-ordinates from the HitTestInfo object. Then imply show the context.
 
Back
Top