Results 1 to 10 of 10

Thread: how to remove te red cross bottom form

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    how to remove te red cross bottom form

    how to remove te red cross buttom form?
    The other bottoms may exist.

    I am using VB 2008
    Last edited by Compyfreak; Mar 26th, 2008 at 07:13 AM.

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: how to remove te red cross bottom form

    Huh? "Red cross bottom form"? What is it are you refering to?

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    Re: how to remove te red cross bottom form

    I am sorry I made a writing error , it must be button.


    It the red cross on the top right of the form, you can close the form with this button

  4. #4
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: how to remove te red cross bottom form

    Under Form Properties select ControlBox. Set this to False.
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: how to remove te red cross bottom form

    I think he means the close button.

  6. #6
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: how to remove te red cross bottom form

    it's an "X", not a cross (+) .... and it's known as the Form Close Button. I'm not sure if it's possible to remove it w/o also removing the control box menu (when you click on the form's icon) and the other buttons.... I know it's possible to remove the other buttons and leave the close button.... but the other way around... I don't know.
    If you are trying to prevent the form from being closed, what you can do is use the Form's Closing event to see how the form is being closed and if it's because the suer clicked the close button, then set the e.cancel to true and the form won't close.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: how to remove te red cross bottom form

    And that is exacally what it does.

    Setting ControlBox to False removes the Close button on the top right.
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  8. #8
    Raging swede Atheist's Avatar
    Join Date
    Aug 2005
    Location
    Sweden
    Posts
    8,018

    Re: how to remove te red cross bottom form

    Quote Originally Posted by Lerroy_Jenkins
    And that is exacally what it does.

    Setting ControlBox to False removes the Close button on the top right.
    And the minimize/maximize buttons.
    Rate posts that helped you. I do not reply to PM's with coding questions.
    How to Get Your Questions Answered
    Current project: tunaOS
    Me on.. BitBucket, Google Code, Github (pretty empty)

  9. #9
    Fanatic Member Lerroy_Jenkins's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    661

    Re: how to remove te red cross bottom form

    Well true, but I assumed that if they did not want the person to close the program, why would they want them to minimise or maximise?

    Sorry for not stating sooner.
    Lerroy

    "η β π", or "Eta Beta Pi" (Eat A Better Pie)

    01001000
    01000101
    01001100
    01010000


    My Own Code - WordCounter

    Useful Forum Links -Reputation - What is it?

  10. #10

    Thread Starter
    Member
    Join Date
    Dec 2007
    Posts
    38

    Re: how to remove te red cross bottom form

    Thank you for correcting me on the terms.
    That is what I was afraid from.
    I think the only sollution is preventing the form to close.

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