4
Answers

How do I create a closing window event?

Photo of flbreen

flbreen

21y
3.2k
1
I was following a message which said "select closing from the list of events" Where in VS do I find is the list of events? I added the following function but it never gets called when I click on the X in the window: private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e) {}

Answers (4)