Re: Hide the "X" on a Windows Form

Phil Sayers <[email protected]> Tue, 4 Sep 2007 13:15:00 -0400
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <[email protected]>
this might get you close

http://www.thescripts.com/forum/thread362575.html



-----Original Message-----
From: Discussion forum for developers using Windows Forms to build apps
and controls [mailto:[email protected]]On Behalf Of
Mike Andrews
Sent: Tuesday, September 04, 2007 12:55 PM
To: [email protected]
Subject: Re: [DOTNET-WINFORMS] Hide the "X" on a Windows Form


I don't believe there is a way to do that unless you want to create your own
owner-drawn form.
You can prevent the form from closing when the x is clicked by using the
Form_Closing event and setting the Cancel property of the CancelEventArgs
argument to true.


On 9/4/07, Greg Robinson <[email protected]> wrote:
>
> How does one hide the "X" (Close) on a Windows From?  I need to hide the X
> but leave the Maximize and Minimize.
>
> Thanks,
>
>
>
> Greg Robinson
> Custom Data Systems, Inc.
> www.cds-am.net
>