4 Replies - 2591 Views - Last Post: 26 October 2009 - 10:41 AM Rate Topic: -----

#1 Thornox  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 29-August 09

Removing Close Control from a WINDOWS FORMS

Post icon  Posted 26 October 2009 - 09:51 AM

I am trying to removed user control from my forms.

I have created a button for them to move to another form.
I have removed the minimum and maximum button but not able to figure out how to remove the Close Button.

Thanks for the help.
Is This A Good Question/Topic? 0
  • +

Replies To: Removing Close Control from a WINDOWS FORMS

#2 janne_panne  Icon User is offline

  • WinRT Dev
  • member icon

Reputation: 428
  • View blog
  • Posts: 1,047
  • Joined: 09-June 09

Re: Removing Close Control from a WINDOWS FORMS

Posted 26 October 2009 - 10:07 AM

I think there was an easy way for it. Check Form's properties, there is "FormBorderStyle" and try to change it. If you set it to Borderless, that will remove whole border and also the max/min/close buttons. But I wonder if there was some other choice too...

FormBorderStyle enumeration:
http://msdn.microsof...y/hw8kes41.aspx
Was This Post Helpful? 0
  • +
  • -

#3 Momerath  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 1012
  • View blog
  • Posts: 2,444
  • Joined: 04-October 09

Re: Removing Close Control from a WINDOWS FORMS

Posted 26 October 2009 - 10:26 AM

Set ControlBox to False will remove min/max/close
Was This Post Helpful? 1
  • +
  • -

#4 Thornox  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 27
  • Joined: 29-August 09

Re: Removing Close Control from a WINDOWS FORMS

Posted 26 October 2009 - 10:33 AM

Thank you both you your help.

You have both given me answers that worked.

Thanks again
Was This Post Helpful? 0
  • +
  • -

#5 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1526
  • View blog
  • Posts: 5,961
  • Joined: 21-March 08

Re: Removing Close Control from a WINDOWS FORMS

Posted 26 October 2009 - 10:41 AM

View PostMomerath, on 26 Oct, 2009 - 01:26 PM, said:

Set ControlBox to False will remove min/max/close


this is what I always do.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1