Search code examples
c#winformsvisual-studioformclosing

Generating form_Closing for c sharp in visual studio


We can generate form_Load() for c sharp in visual studio by just double clicking the form in design view. Is there a same kind of procedure to generate form_Closing() too?


Solution

  • Under the properties for the object you have selected (usually bottom right side), you'll see a lightning bolt. Click it, and you'll see all the events that are available for that object. Double click by one of the events and voila!