|
-
Aug 16th, 2006, 11:42 AM
#1
Thread Starter
Member
[2005] RESOLVED - Remove or Disable the [X] on a forms title
How can i disable the little x at the top of a window or disable it? Ive found some code snippets but they dont work.
Thanks,
chris
Last edited by UsefulIdiot; Aug 16th, 2006 at 11:58 AM.
-
Aug 16th, 2006, 11:45 AM
#2
Fanatic Member
Re: [2005] Remove or Disable the [X] on a forms title
The ControlBox property. Set it to False
Warren Ayen
Senior C# Developer
DLS Software Studios ( http://www.dlssoftwarestudios.com/)
I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
Hey! If you like my post, or I solve your issue, please Rate Me!
-
Aug 16th, 2006, 11:47 AM
#3
Fanatic Member
Re: [2005] Remove or Disable the [X] on a forms title
Either that, or set a flag = if someone tries to dispose of the form, put the line:
VB Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Warren Ayen
Senior C# Developer
DLS Software Studios ( http://www.dlssoftwarestudios.com/)
I use Microsoft Visual Studio 2005, 2008, working with Visual Basic and Visual C#
Hey! If you like my post, or I solve your issue, please Rate Me!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|