Hello guys,
How to HIDE X-Button. (NOT disable)
TQ
Printable View
Hello guys,
How to HIDE X-Button. (NOT disable)
TQ
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
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.:)
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
Any other ways to HIDE X-button, please
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.