<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>5 Apr 2020 16:46:48 Z</lastBuildDate><pubDate>27 Jun 2006 11:36:10 Z</pubDate><description>hello everyone,&#13;
is there a way to prevent a user from closing a window by clickin on the X-button in the upper-right corner of the window ?&#13;
I can detect when a user does this, but then the window allready closes.&#13;
The minimise and maximise button need to be available for the user, only the Close button needs to be disabled&#13;
greetz,&#13;
Patrick</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp</link><title>preventing to close window</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>stijnmeulewaeter</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-67736/read.awp</comments><pubDate>5 Apr 2020 16:46:48 Z</pubDate><description>Let's say you want to disable Alt+F4 for all the windows in your project with a Windows Template screen : &#13;
&#13;
1) Put the followi…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-67736/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-67736/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp">preventing to close window</source><title>Re: preventing to close window</title></item><item><author>fromweb</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41613/read.awp</comments><pubDate>1 Aug 2013 22:48:10 Z</pubDate><description>HI Bob&#13;
&#13;
or just set the ALT-F4 button type as "cancel', and the ESC will be &#13;
trapped too&#13;
&#13;
Best regards&#13;
&#13;
-- &#13;
Fabrice Hara…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41613/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41613/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp">preventing to close window</source><title>Re: preventing to close window</title></item><item><author>roosbob</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41599/read.awp</comments><pubDate>1 Aug 2013 05:06:11 Z</pubDate><description>The event approach will also catch the Escape key closing the window but the Alt-F4 approach will not.  &#13;
&#13;
I realize that was n…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41599/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-41599/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp">preventing to close window</source><title>Re: preventing to close window</title></item><item><author>susankhya2003</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7895/read.awp</comments><pubDate>17 Oct 2006 15:11:33 Z</pubDate><description>Hello Patrick,&#13;
&#13;
Greetings !&#13;
&#13;
Declare an event in a window's initialization event as:&#13;
&#13;
Event("CloseMainWindow", "WindowTips…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7895/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7895/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp">preventing to close window</source><title>Re:  preventing to close window</title></item><item><author>no</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7445/read.awp</comments><pubDate>27 Jun 2006 12:07:24 Z</pubDate><description>Hi Patrick,&#13;
Assign the shortcut ALT+F4 to a button and catch the close button (X) click there.&#13;
Ciao,&#13;
P.&#13;
&gt;hello everyone,&#13;
&gt;i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7445/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window-7445/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/7441-preventing-close-window/read.awp">preventing to close window</source><title>Re: preventing to close window</title></item></channel></rss>
