# Confirm exit of Smart Client

**URL:** <https://forum.servoy.com/t/confirm-exit-of-smart-client/18765>\
**Category:** Classic Servoy\
**Created:** [March 8, 2016, 8:18pm UTC](https://forum.servoy.com/t/confirm-exit-of-smart-client/18765 "2016-03-08T20:18:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![t-rob](https://avatars.discourse-cdn.com/v4/letter/t/7993a0/32.png) [@t-rob](https://forum.servoy.com/u/t-rob)\
**Post date:** [March 8, 2016, 8:18pm UTC](https://forum.servoy.com/t/confirm-exit-of-smart-client/18765/1 "2016-03-08T20:18:52Z")

</div>

I have code that confirms the user wants to exit the Smart Client when they click a Logout button. Is there a way to create a user confirmation when they simply click the “X” (in Windows) to close the main window of the application? Or maybe there is a way to disable the “X”?

[I posted this in the wrong section, but cannot find where to delete this post.]
