WinForms, Load, Unload events

  • Thread starter Thread starter Chad Z. Hower aka Kudzu
  • Start date Start date
C

Chad Z. Hower aka Kudzu

Im porting a simple demo to WinForms. I need the equivlant of Delphi's
OnCreate. This appears to be the Load event? This also seems to be similar to
what older VB's used.

Then what matches the OnDestroy / Dispose of a form? VB used to have an
Unload IIRC, but I dont see such in WinForms.
 
Chad Z. Hower aka Kudzu said:
Im porting a simple demo to WinForms. I need the equivlant of Delphi's
OnCreate. This appears to be the Load event? This also seems to be
similar to what older VB's used.

Then what matches the OnDestroy / Dispose of a form? VB used to have an
Unload IIRC, but I dont see such in WinForms.

Actually I should just use the constructor and Dispose, but I also need to be
able to dynamically hook these and why I need events.
 
Back
Top