Yes of course, the source code is at <a href="http://www.zpon.dk/tmp/test.cs">http://www.zpon.dk/tmp/test.cs</a> - sorry if it is messy<br><br>Søren Juul<br><br><div><span class="gmail_quote">2007/6/20, Jacob Ilsø Christensen &lt;
<a href="mailto:jacobilsoe@gmail.com">jacobilsoe@gmail.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi.<br><br>Can you supply the source code? Then it&#39;s easier to determine what&#39;s wrong.
<br><br>Regards,<br>Jacob<br><br>On 6/20/07, Søren Juul &lt;<a href="mailto:zpon.dk@gmail.com">zpon.dk@gmail.com</a>&gt; wrote:<br>&gt; Hi<br>&gt;<br>&gt; I am working on a very small (simple) application, mainly to get to know
<br>&gt; gtk-sharp better. But I need to hide a window, while another is showing. I<br>&gt; want to do this when a button is pushed, I thought I could do this from the<br>&gt; function connected to the button with the EventHandler, such as &quot;
<br>&gt; button.Clicked += new EventHandler(next);&quot;<br>&gt; and put something like &quot;win.Visible = false;&quot; in that function, but when I<br>&gt; do this I get a terrible error:<br>&gt;<br>&gt; Unhandled Exception: 
System.NullReferenceException : Object reference not<br>&gt; set to an instance of an object<br>&gt;&nbsp;&nbsp; at dataHolder.test (System.Object temp) [0x00000]<br>&gt;&nbsp;&nbsp; at inputWindow.next (System.Object obj, System.EventArgs args) [0x00000]
<br>&gt;&nbsp;&nbsp; at (wrapper delegate-invoke)<br>&gt; System.MulticastDelegate:invoke_void_object_EventArgs<br>&gt; (object,System.EventArgs)<br>&gt;&nbsp;&nbsp; at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000]<br>
&gt;&nbsp;&nbsp; at (wrapper native-to-managed) GLib.Signal:voidObjectCallback<br>&gt; (intptr,intptr)<br>&gt;&nbsp;&nbsp; at &lt;0x00000&gt; &lt;unknown method&gt;<br>&gt;&nbsp;&nbsp; at (wrapper managed-to-native) Gtk.Application:gtk_main ()<br>&gt;&nbsp;&nbsp; at 
Gtk.Application.Run () [0x00000]<br>&gt;&nbsp;&nbsp; at inputWindow.makeWindow () [0x00000]<br>&gt;&nbsp;&nbsp; at inputWindow..ctor ( System.Object temp) [0x00000]<br>&gt;&nbsp;&nbsp; at Sample.Main () [0x00000]<br>&gt;<br>&gt; How can I avoid this? Hope my description was understandable, but pleas ask
<br>&gt; if there is something you don&#39;t understand.<br>&gt;<br>&gt; Thanks in advance<br>&gt;&nbsp;&nbsp;Søren Juul<br>&gt;<br>&gt; _______________________________________________<br>&gt; Gtk-sharp-list maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Gtk-sharp-list@lists.ximian.com">
Gtk-sharp-list@lists.ximian.com</a><br>&gt; <a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a><br>&gt;<br>&gt;<br></blockquote></div><br>