Subject Re: closing form with windows
From Lee Grant <>
Date Sat, 23 Jan 2021 01:48:22 -0500
Newsgroups dbase.getting-started


My first thought when I read your question is...what the heck is a "no
hoe". :)

Anyway, off the top of my head ( so take that for what it's worth) you
can either use canClose method to prevent the form from closing, but
then you'd also have to manually close it with code when you were ready,
or you could make the "X" close button disappear completely, but
changing the form property to "mdi = false" and the "sysmenu = false".
Again, when it's time to close the form, however, you'll need to
programmatically close it manually...with form.close().

Play with this code in the Command Window to see what I mean:

f = new form()
f.sysmenu = false
f.mdi = false

Have fun.


On 1/23/2021 12:32 AM, Cornelius wrote:
> Good morning.
> I would like to no hoe to prevent the closing of a active form with the windows red X on the top right hand side of the form.
> Thanks,
> Pottie