I use the notifyIcon from Winforms in a WPF application. Bellow is part of my event handler:
private void notifyIcon_Logger_MouseDown( object sender, EventArgs e )
{
var st = e.ToString();
...
I may not make e parameter a MouseEventArgs because compiler says it does not match. But even so, I see that st is "System.Windows.Forms.MouseEventArgs". How is that?!
I have pinned e on IDE surface to watch it for debug purposes and I see it has a member Button. I see something like
Button = Right
but if I try e.Button I get error CS1061: 'EventArgs' does not contain a definition for 'Button' How is all these possible? More importantly, how to identify mouse button?