[Mono-winforms-list] NotifyIcon OnClick

n i c o scalpmail+nabble at gmail.com
Sat Jan 3 06:17:26 EST 2009


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.



More information about the Mono-winforms-list mailing list