Hello,

I'm trying to port an application to mono and I'm facing a problem:
On Windows + .Net, when I click on a notifyIcon, I can cast the EventArgs
argument to a MouseEventArgs event in order to get which mouse button is
clicked.
In Mono, the argumement cannot be cast. How do I do that ?

        private void notifyIcon_Click(object sender, EventArgs e)
        {
            if (((MouseEventArgs)e).Button == MouseButtons.Left)
            {
                //
            }
        }

Thanks in advance,
Nico
-- 
View this message in context: 
http://www.nabble.com/NotifyIcon-OnClick-tp21263967p21263967.html
Sent from the Mono - WinForms mailing list archive at Nabble.com.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Reply via email to