Results 1 to 5 of 5

Thread: Click Event in Monodevelop/GTK#

  1. #1
    Join Date
    Feb 2007
    Beans
    18

    Click Event in Monodevelop/GTK#

    Hey Guys,

    This is a complete noob question but I've not found an answer anywhere yet so I figured I'd post here.


    I've decided to play with monodevelop IDE and learn a little C#. All I need to know is how the heck do I capture a click event from a button on my gui?

  2. #2
    Join Date
    May 2008
    Beans
    33

    Re: Click Event in Monodevelop/GTK#

    one image speaks many words
    Attached Images Attached Images

  3. #3
    Join Date
    Feb 2007
    Beans
    18

    Re: Click Event in Monodevelop/GTK#

    Quote Originally Posted by argor View Post
    one image speaks many words

    Wow... how handy, a signal tab! Can't believe I didn't notice that, thanks man!

  4. #4
    Join Date
    Aug 2007
    Beans
    8

    Re: Click Event in Monodevelop/GTK#

    Quote Originally Posted by joshb86 View Post
    Wow... how handy, a signal tab! Can't believe I didn't notice that, thanks man!

    You are not alone, I am glad I found this thread using google - monodevelop is quite different to use than visual studio....

  5. #5
    Join Date
    Nov 2007
    Beans
    410
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Click Event in Monodevelop/GTK#

    All the signal tab does is create the method for you in the code view. You can also just add the .Clicked handler yourself, like this:

    Gtk.Button a = new Gtk.Button ();
    a.Clicked += delegate {
    // do something when the button was clicked...
    };

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •