[Gtk-sharp-list] gtk newbie
Marco Rego
marco@amazonware.com
Sun, 11 Apr 2004 11:28:33 -0400
Please pardon my high ignorance in gtk ...
Could someone tell me why the the example below doesn't work ? I mean,
it builds but when I try to execute it ends with a
nullreferenceexception.
using Gtk;
using System;
public class MyWindow : Window {
public MyWindow() {
this.Show();
}
}
public class TestMyWindow {
public static void Main(string[] args) {
Application.Init ();
new MyWindow();
Application.Run();
}
}
I know if don't inherit MyWindow from Window and in instead put a Window
object as a member of MyWindow it works.
TIA.
Marco.