enum System.Windows.Forms.CloseReason:

   def enum
      None = 0
      WindowsShutDown = 1
      MdiFormClosing = 2
      UserClosing = 3
      TaskManagerClosing = 4
      FormOwnerClosing = 5
      ApplicationExitCall = 6.

end enum.
