Okay. I found the partial class file that defined the OnShown event. I modified the code in my application but OnShown is stil not getting fired. Here's the main window code:
using System; using Gtk; public partial class MainWindow : Gtk.Window { public MainWindow () : base(Gtk.WindowType.Toplevel) { Build (); } protected void OnDeleteEvent (object sender, DeleteEventArgs a) { Application.Quit (); a.RetVal = true; } protected virtual void OnExitActionActivated (object sender, System.EventArgs e) { Application.Quit(); } protected virtual void OnShown (object sender, System.EventArgs e) { Button test = new Button("Test"); Label tstLabel = new Label("Test"); notebook1.AppendPage(test, tstLabel); test.Show(); tstLabel.Show(); } } And here's the OnShown event definition: this.Shown += new global::System.EventHandler (this.OnShown); So when I put the program in debug the OnShow is never getting called. Thanks for help in advance. -- View this message in context: http://mono.1490590.n4.nabble.com/GTK-Window-Events-tp2316890p2318132.html Sent from the Mono - Gtk# mailing list archive at Nabble.com. _______________________________________________ Gtk-sharp-list maillist - Gtk-sharp-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/gtk-sharp-list