[Mono-list] gtk#

Martin Willemoes Hansen mwh@sysrq.dk
30 Oct 2002 15:50:28 +0100

On Tue, 2002-10-29 at 23:13, ruch wrote:
> hello everybody...
> i have some problems to set up the gtk# on my system,...mono is running 
> excellent...but when i try to compile the helloworld.cs from the gtk# sample 
> directory( # mcs HelloWorld.cs) the compiler allwas tells me:
> HelloWorld.cs(26) error CS0246: Cannot find type `DeleteEventArgs'
> Compilation failed: 1 error(s), 0 warnings
> and i do not know what the problem is...
> have i to configure a conf file manually with the right path?

try this code:

using Gtk;
using GtkSharp;
using System;
public class HelloWorld {
      public static void Main() {
              Window win = new Window ("Hello, World!");
              win.DeleteEvent += new DeleteEventHandler (WindowDelete);

      static void WindowDelete (object o, DeleteEventArgs args) {
                        args.RetVal = true;

Martin Willemoes Hansen

E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net