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 <
<a href="mailto:jacobilsoe@gmail.com">jacobilsoe@gmail.com</a>>:</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's easier to determine what's wrong.
<br><br>Regards,<br>Jacob<br><br>On 6/20/07, Søren Juul <<a href="mailto:zpon.dk@gmail.com">zpon.dk@gmail.com</a>> wrote:<br>> Hi<br>><br>> I am working on a very small (simple) application, mainly to get to know
<br>> gtk-sharp better. But I need to hide a window, while another is showing. I<br>> want to do this when a button is pushed, I thought I could do this from the<br>> function connected to the button with the EventHandler, such as "
<br>> button.Clicked += new EventHandler(next);"<br>> and put something like "win.Visible = false;" in that function, but when I<br>> do this I get a terrible error:<br>><br>> Unhandled Exception:
System.NullReferenceException : Object reference not<br>> set to an instance of an object<br>> at dataHolder.test (System.Object temp) [0x00000]<br>> at inputWindow.next (System.Object obj, System.EventArgs args) [0x00000]
<br>> at (wrapper delegate-invoke)<br>> System.MulticastDelegate:invoke_void_object_EventArgs<br>> (object,System.EventArgs)<br>> at GLib.Signal.voidObjectCallback (IntPtr handle, IntPtr gch) [0x00000]<br>
> at (wrapper native-to-managed) GLib.Signal:voidObjectCallback<br>> (intptr,intptr)<br>> at <0x00000> <unknown method><br>> at (wrapper managed-to-native) Gtk.Application:gtk_main ()<br>> at
Gtk.Application.Run () [0x00000]<br>> at inputWindow.makeWindow () [0x00000]<br>> at inputWindow..ctor ( System.Object temp) [0x00000]<br>> at Sample.Main () [0x00000]<br>><br>> How can I avoid this? Hope my description was understandable, but pleas ask
<br>> if there is something you don't understand.<br>><br>> Thanks in advance<br>> Søren Juul<br>><br>> _______________________________________________<br>> Gtk-sharp-list maillist - <a href="mailto:Gtk-sharp-list@lists.ximian.com">
Gtk-sharp-list@lists.ximian.com</a><br>> <a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">http://lists.ximian.com/mailman/listinfo/gtk-sharp-list</a><br>><br>><br></blockquote></div><br>