Hi,
I'm trying to make a custom context menu for the MonthCellElement using the mousedown event, but when I right click and it executes the below code it always opens the context menu in a different position than it should.
void sch_mousedown(object sender, MouseEventArgs e) |
{ |
if (e.Button == MouseButtons.Right) |
{ |
string x = sender.ToString(); |
MonthCellElement element = (MonthCellElement)sender; |
int stuff = e.Location.X; |
stuff = e.Location.Y; |
_sch_context.Show(element, e.Location); |
} |
} |