[Gtk-sharp-list] Hello World help

Guenther Roith groith@tcrz.net
Mon, 11 Nov 2002 19:51:55 +0100


Hello!

Right. You must also replace this line

  win.DeleteEvent += new EventHandler (Window_Delete);

with that:

  win.DeleteEvent += new DeleteEventHandler (Window_Delete);

Johannes


----- Original Message -----
From: "Fabian Vargas" <favosys@express.net.co>
To: "Guenther Roith" <groith@tcrz.net>; "Gtk# List"
<gtk-sharp-list@ximian.com>
Sent: Monday, November 11, 2002 7:41 PM
Subject: Re: [Gtk-sharp-list] Hello World help


> Hi Johannes
> I'm sorry but your suggestion didn't work, I got the msg:
> ---
> # mcs -r gtk-sharp -r glib-sharp hola.cs
> hola.cs(15) error CS0123: Method 'void Window_Delete (object,
> GtkSharp.DeleteEventArgs)' does not match delegate 'void
System.EventHandler
> (object, System.EventArgs)'
>
> Compilation failed: 1 error(s), 0 warnings
>
> ---
> do you know what could have happened?
>
> Fabian
> ----- Original Message -----
> From: "Guenther Roith" <groith@tcrz.net>
> To: "Fabian Vargas" <favosys@express.net.co>; "Gtk# List"
> <gtk-sharp-list@ximian.com>
> Sent: Monday, November 11, 2002 11:49 AM
> Subject: Re: [Gtk-sharp-list] Hello World help
>
>
> > Hello!
> >
> > This is the wrong solution.
> > Keep the + and instead, change line
> >
> > static void Window_Delete(object obj, EventArgs args)
> >
> > to
> >
> > static void Window_Delete(object obj, DeleteEventArgs args)
> >
> > adding the Delete before EventArgs
> >
> > Johannes
> >
> >
>
>
>