Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

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.

Edited by mandelbrot
Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...