Results 1 to 6 of 6

Thread: Hiding Controlbox at runtime

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    J-ville, NC
    Posts
    54

    Post

    How would you hide or remove the controlbox at runtime? Yanno, the titlebar of a form where it has the minimize, maximize and close button. Don't forget I want to know how you could do it at runtime! Thanx

    ------------------
    David Underwood
    Cannabatech Corporation

    ICQ - 14028049
    E-mail - [email protected]




  2. #2
    Frenzied Member CyberCarsten's Avatar
    Join Date
    Sep 1999
    Location
    Aalborg Ø, Denmark
    Posts
    1,544

    Post

    Try this:

    Form1.BorderStyle = 0

  3. #3
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    While someone may be able to tell you how to do what you want to do, if you let us know what it is that you want to prevent from happening (I assume that's the reason for the question), perhaps someone can solve the problem in a more traditional way.

    ------------------
    Marty

  4. #4

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    J-ville, NC
    Posts
    54

    Post

    I don't want anything to prevent from happening. I want to be able to press a command button and have the titlebar (of the form) disappear. But you can't because if you use the form properties to do it, is says you can't assign to read only property.

    ------------------
    David Underwood
    Cannabatech Corporation

    ICQ - 14028049
    E-mail - [email protected]




  5. #5
    Lively Member Maartin's Avatar
    Join Date
    Jan 2000
    Location
    Benoni, Gauteng, South-Africa
    Posts
    99

    Post

    Well there is only one way that i know works.
    It might not be the result that you are looking for but here goes.

    Change the form border style to 3 - Fixed Dialog. The set the form ControlBox to false
    but leave the caption of the form there.

    When you want the titlebar to disapear just clear out the caption of the form.

    I hope it helps.


    ------------------
    -----------------------
    Maartin
    [email protected]
    -----------------------

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 1999
    Location
    J-ville, NC
    Posts
    54

    Post

    That would work but then you would lose the minimize, maximize and close button of the form. Doesn't anyone know any API that could do this?

    ------------------
    David Underwood
    Cannabatech Corporation

    ICQ - 14028049
    E-mail - [email protected]




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