зеркало из https://github.com/mono/mail-archives.git
88 строки
2.2 KiB
HTML
88 строки
2.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML>
|
|
<HEAD>
|
|
<TITLE> [Gtk-sharp-list] gtk newbie
|
|
</TITLE>
|
|
<LINK REL="Index" HREF="index.html" >
|
|
<LINK REL="made" HREF="mailto:marco%40amazonware.com">
|
|
<META NAME="robots" CONTENT="index,nofollow">
|
|
|
|
<LINK REL="Previous" HREF="003815.html">
|
|
<LINK REL="Next" HREF="003820.html">
|
|
</HEAD>
|
|
<BODY BGCOLOR="#ffffff">
|
|
<H1>[Gtk-sharp-list] gtk newbie
|
|
</H1>
|
|
<B>Marco Rego
|
|
</B>
|
|
<A HREF="mailto:marco%40amazonware.com"
|
|
TITLE="[Gtk-sharp-list] gtk newbie">marco@amazonware.com
|
|
</A><BR>
|
|
<I>Sun, 11 Apr 2004 11:28:33 -0400</I>
|
|
<P><UL>
|
|
<LI> Previous message: <A HREF="003815.html">[Gtk-sharp-list] too many GDA nullpointers!!
|
|
</A></li>
|
|
<LI> Next message: <A HREF="003820.html">[Gtk-sharp-list] gtk newbie
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#3805">[ date ]</a>
|
|
<a href="thread.html#3805">[ thread ]</a>
|
|
<a href="subject.html#3805">[ subject ]</a>
|
|
<a href="author.html#3805">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
<HR>
|
|
<!--beginarticle-->
|
|
<PRE>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.
|
|
|
|
|
|
</PRE>
|
|
<!--endarticle-->
|
|
<HR>
|
|
<P><UL>
|
|
<!--threads-->
|
|
<LI> Previous message: <A HREF="003815.html">[Gtk-sharp-list] too many GDA nullpointers!!
|
|
</A></li>
|
|
<LI> Next message: <A HREF="003820.html">[Gtk-sharp-list] gtk newbie
|
|
</A></li>
|
|
<LI> <B>Messages sorted by:</B>
|
|
<a href="date.html#3805">[ date ]</a>
|
|
<a href="thread.html#3805">[ thread ]</a>
|
|
<a href="subject.html#3805">[ subject ]</a>
|
|
<a href="author.html#3805">[ author ]</a>
|
|
</LI>
|
|
</UL>
|
|
</body></html>
|