|
-
Dec 25th, 2003, 04:08 AM
#1
Thread Starter
Addicted Member
Close Button
How can I disable the (X) Close Button?
Also, Why is it that I can still maximize my form after setting maximizeBox to false???
This is making me kind of mad.
Last edited by Rally2000; Dec 25th, 2003 at 04:26 AM.
-
Dec 25th, 2003, 05:15 AM
#2
Sleep mode
Handle CancelEventArgs parameter in Closing event . This way :
VB Code:
Private Sub Form1_Closing(ByVal sender As Object, ByVal e As System.ComponentModel.CancelEventArgs) Handles MyBase.Closing
e.Cancel = True
End Sub
Why is it that I can still maximize my form after setting maximizeBox to false???
How ?
-
Dec 25th, 2003, 05:26 AM
#3
Thread Starter
Addicted Member
Try it and you will see what I'm talking about.
I'm using VS.Net Pro 2003
If you click around where that button would normally be U will find it. (or not)
If need be I can show you a screen shot.
PS: Thanks!!
-
Dec 25th, 2003, 05:40 AM
#4
Sleep mode
When setting the property 'MaximizeBox' of the form to False , this would show it but dimmed . I've tried what you said but nothing happened .
-
Dec 25th, 2003, 04:06 PM
#5
Thread Starter
Addicted Member
I know what is happening now, I’m using fixed tool window for border style (does not show min., max.) but I did not set the min. and max. property to false (did not know you had to do that) besides, I did not even think to do it since the boxes don’t show.
Anyway, any time you are using fixed border style setting and do not disable min. and max. Button U still be able to maximize your App.
I’m glad I found the problem.
-
Dec 25th, 2003, 10:16 PM
#6
Originally posted by Rally2000
If you click around where that button would normally be U will find it. (or not)
It is supposed to do that. Clicking on the title bar of a Windows Application is supposed to maximize and minimize the program.
-
Dec 25th, 2003, 10:21 PM
#7
Sleep mode
Originally posted by kasracer
It is supposed to do that. Clicking on the title bar of a Windows Application is supposed to maximize and minimize the program.
I'm sure , you didn't read through the thread . If MaximizedBox is set to false , this , no way to maxmimize the window by the 'max' button nor clicking on the title bar .
-
Dec 25th, 2003, 10:43 PM
#8
Originally posted by Pirate
I'm sure , you didn't read through the thread . If MaximizedBox is set to false , this , no way to maxmimize the window by the 'max' button nor clicking on the title bar .
Yes I know, I was explaining to him why what he did maximized the app
-
Dec 26th, 2003, 01:14 AM
#9
Thread Starter
Addicted Member
My point was simply this, if it claims to be a fixed type window it should not expand at any time.
but it does, oh well! Next time I know to disable min. and max. button.
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
|