Re: help - sample events

"Mariusz Mart" <[email protected]>
Newsgroups gmane.comp.gnome.mono.documentation
Message-ID <[email protected]>
Thanks for Your answer!
But I need it for gtk :( 

I wrote code:

using System;
using Gtk;
public class Moja {
     public static void Main (){
          Application.Init ();
          Application.Run();
          Moja mojaa = new Moja();
     }
     public Moja(){
        Window okno = new Window("cos");
        Button klawisz = new Button("xEma!:)");
        klawisz.ButtonPressEvent += new ButtonPressEventHandler(this.onBottonC lick);
        okno.Add(klawisz);
        okno.ShowAll();
     }
     private void onBottonClick(object o,ButtonPressEventArgs args){
        System.Console.WriteLine("klik");
        Application.Quit();
     }
}

But when i press button nothing happen :(
_______________________________________________
Mono-docs-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-docs-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.