View Full Version : Click Event in Monodevelop/GTK#
joshb86
February 1st, 2010, 10:29 PM
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?
argor
February 3rd, 2010, 05:22 PM
one image speaks many words
joshb86
February 3rd, 2010, 05:36 PM
one image speaks many words
Wow... how handy, a signal tab! Can't believe I didn't notice that, thanks man!
loe
March 7th, 2010, 01:19 AM
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....
cszikszoy
March 7th, 2010, 03:44 AM
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...
};
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.