EventButton problem



Hi,
 
I am getting the following error when declaring a new EventButton:
* error CS0117 = 'Gtk.EventBox' does not contain a definition for 'button' (line 4)
 
and the code is,
 
public void E (object sender, ButtonPressEventArgs e)
{
Gdk.EventButton evbCheck = e.Event;
if (evbCheck.button ==3)                 //line 4, error is here
  e.RetVal = true;
}
 
Anyone have an idea of what is going wrong and how to solve it?
 
Thanks in advance.
 
Erik


Do you Yahoo!?
Yahoo! Mail - 50x more storage than other providers!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]