Talk:System.Windows.Forms tutorial

From Nemerle Homepage

Note that you can skip writing EventHandler (...) in Nemerle. Just do

this.OnPaint += my_paint_function;

or even

this.OnQuit += fun (_) { Application.Quit(); }

Also I wouldn't call SWF standard GUI for Mono. It is a standard for MS.NET and it is supported on Mono. --Malekith 12:51, 22 Oct 2005 (CEST)



in Cleaning up sample code write

protected override Dispose(disposing : bool) : void {
   when (disposing) when (components!=null) components.Dispose();
   base.Dispose(d);
}

but it is compile errer. It is necessary to write as

protected override Dispose(disposing : bool) : void {
   when (disposing) when (components!=null) components.Dispose();
   base.Dispose(disposing);
}

or

protected override Dispose(d: bool) : void {
   when (d) when (components!=null) components.Dispose();
   base.Dispose(d);
}

--Ashlama 16:01, 18 Nov 2005 (CET)

tree
  • System.Windows.Forms tutorial
remember
You are very welcome to contribute to the documentation here!