4
Reply

How do I create a closing window event?

Ask a question
flbreen

flbreen

20y
2.8k
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)