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.

See Also:
ExitController - prompt when the user is about to exit the application


Viewing all articles
Browse latest Browse all 7205

Trending Articles