[MonoDevelop] Can't get basic code to work
Jeffrey Stedfast
fejj at novell.com
Wed Jul 25 15:40:38 EDT 2007
you probably want button.Clicked event, not Activated
Jeff
On Wed, 2007-07-25 at 12:23 -0700, George Lober wrote:
> Hello,
>
> Sorry if this seems a bit idiotic guys but I can't even get through the
> basic stuff.
>
> Using MonoDevelop/Stetic, I just have a basic window with a button,
> label and entry widgets. I have the following attached to the button
> buttonPressEvent:
>
> protected virtual void onButtonPress (object o,
> Gtk.ButtonPressEventArgs args)
> {
> label1.Text = "abcd";
> entry1.Text = "1234";
> }
>
> and this attached to the button Activated signal:
>
> protected virtual void onActivated (object sender, System.EventArgs e)
> {
> label1.Text = "abcd";
> entry1.Text = "1234";
> }
>
> When I run the app and click on the button, neither one of these is
> working, the text does not show up in the label or the entry box. What
> am I missing?
>
>
> Thanks,
> George
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list
More information about the Monodevelop-list
mailing list