Re: Hide the "X" on a Windows Form
Greg Robinson <[email protected]> Tue, 4 Sep 2007 13:14:42 -0400
| Newsgroups | gmane.comp.windows.devel.dotnet.winforms |
|---|---|
| Message-ID | <[email protected]> |
Yeah, that is what my research suggests, it's not possible. I thought about handling form closing too but this is more of a visual then a behavioral requirement. Thanks Greg Robinson Custom Data Systems, Inc. www.cds-am.net -----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 >