|
This course
- Form Dismissal Event Example
last updated:
08/07/2006
|
FormDismissed1 - standard code as produced by VS.NET
- a project that launches a second form; Form1 does not know when Form2
has been dismissed
FormDismissed2 - declaring a new event in an Observer class
- a project that launches a second form; Form1 registers for the
"FormDismissed" event, and Form2 raises the event as it is closing; Form1
them writes to a label to show that it handled the event
FormDismissed3 - customizing an event argument
- a project that launches a second form; Form1 registers for the
"FormDismissed" event, and Form2 raises the event as it is closing, passing
a string as an argument to the event; Form1 them writes the passed string to
a label
sample project (.zipped)