Re: Hide the "X" on a Windows Form
Mike Andrews <[email protected]> Tue, 4 Sep 2007 11:54:33 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
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 >