Florence,
This very issue was the subject of of one the most interesting (IMHO) wrox
threads of recent months. It's in the archive (you know, the place you
search before posting to the forum.... :-).
Go to http://p2p.wrox.com/archive/pro_vb/2001-10/86.asp (watch text
wrapping) to read the thread. I posted some code that use that API to
disable the 'X' button (post 33 in thread) but be warned some wanted to
put burning crosses in my front lawn for turning off the "X" ;-). They
are probably right in most cases, as it is generally better to control the
unload of forms throught the QueryUnload event.
HTH
andy
> I have found a way to disable the "X" or close button.
> But if you want to enable it again i am not too sure about that...
>
> Regards
> Graeme
>
> -----Original Message-----
> From: Florence [mailto:florencechan2001@h...]
> Sent: Wednesday, January 23, 2002 6:19 AM
> To: professional vb
> Subject: [pro_vb] Re: Disabling the close button in the upper right of a
> form
>
>
> How about disabling the close button of a MDI form?
>
> Thanks.
>
> > Anyone know how to disable the close "X" button in the upper right-
hand
> > corner of a form?
>
> Florence