Results 1 to 6 of 6

Thread: Hide X-Button

  1. #1

    Thread Starter
    Addicted Member g-mie's Avatar
    Join Date
    Jan 2004
    Location
    EarTh
    Posts
    212

    Hide X-Button

    Hello guys,
    How to HIDE X-Button. (NOT disable)

    TQ

  2. #2
    Supreme User Madboy's Avatar
    Join Date
    Oct 2003
    Location
    England
    Posts
    3,253
    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

  3. #3
    Member
    Join Date
    Mar 2004
    Posts
    49
    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.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    You could also do this

    VB Code:
    1. Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
    2.  
    3.     If UnloadMode = vbFormControlMenu Then
    4.         MsgBox "Not allowed"
    5.         Cancel = True
    6.     End If
    7.  
    8. End Sub

  5. #5

    Thread Starter
    Addicted Member g-mie's Avatar
    Join Date
    Jan 2004
    Location
    EarTh
    Posts
    212
    Any other ways to HIDE X-button, please

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    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
  •  



Click Here to Expand Forum to Full Width