Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to prompt when the user is about to exit a WinForms application

$
0
0

Scenario
A confirmation message appears when the main application window is being closed by a user to avoid accidental closure of the whole application and losing all opened screens:


Implementation
To use this solution in your project, simply copy the ...\WinSolution.Module.Win\PromptClosingLastMainWindowController.xx file into your WinForms module project.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>