WinForms, Load, Unload events

  • Thread starter Chad Z. Hower aka Kudzu
  • 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.
 
C

Chad Z. Hower aka Kudzu

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top