Changing a variable before the application exits

  • Thread starter Thread starter Lado.Leskovec
  • Start date Start date
L

Lado.Leskovec

Hi, I have while loop running, that ends when a certain boolean
variable is set (ClosingProgram). Obviousely I can change that variable
by cliclking a custom button or something, but i would like it to
change also when someone exits the application using the X icon in the
upper right corner.

Please help, Thanks!
 
You can try overriding the OnClosing method in your Form and setting
the variable there.

=======================

Clay Burch
Syncfusion, Inc.
 

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

Back
Top