|
-
Mar 22nd, 2004, 11:47 AM
#1
Thread Starter
Addicted Member
Hide X-Button
Hello guys,
How to HIDE X-Button. (NOT disable)
TQ
-
Mar 22nd, 2004, 12:13 PM
#2
Supreme User
as far as i know, it can only be greyed, unless theres some extensive form of API for it.
You could remove the Form's control box, this would move the icon and Min,Max button too though
-
Mar 22nd, 2004, 12:14 PM
#3
Member
I'm not sure exactly what you're asking, but you might check out the .Visible property.
Leecher
Edit: Nevermind. You want to get rid of the Close button on the form. In that case, don't check out the .Visible property.
-
Mar 22nd, 2004, 12:18 PM
#4
You could also do this
VB Code:
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
If UnloadMode = vbFormControlMenu Then
MsgBox "Not allowed"
Cancel = True
End If
End Sub
-
Mar 22nd, 2004, 08:48 PM
#5
Thread Starter
Addicted Member
Any other ways to HIDE X-button, please
-
Mar 22nd, 2004, 09:02 PM
#6
The picture isn't missing
err.... well you could disable it, then draw a rectangle over it to hide it from being shown.... makes it look ugly but whatever right?
just subclass, catch certain ncl_ paint message, and then paint on the window.
Remember, if someone's post was not helpful, you can always rate their post negatively  .
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
|