By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,780 Members | 1,520 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,780 IT Pros & Developers. It's quick & easy.

Changing a variable before the application exits

P: n/a
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!

Jan 26 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a

You can try overriding the OnClosing method in your Form and setting
the variable there.

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

Clay Burch
Syncfusion, Inc.

Jan 26 '07 #2

P: n/a
:) Thanks! Exactly what I needed :)

Jan 26 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.