Results 1 to 6 of 6

Thread: Hiding titlebar

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2000
    Location
    At my computer
    Posts
    187
    I need to hide all of the controls on my form, turn it completely black, and cover the whole screen with it. (Black out the screen).

    I have this:

    Dim Control As Control

    For Each Control In frmMain.Controls
    Control.Visible = False
    Next Control
    Me.BackColor = vbBlack

    Me.Move 0, 0, Screen.Width, Screen.Height

    This does all that I want, but it does not cover the screen and the titlebar is still there. I tried:
    Me.BorderStyle = 0
    And:
    Me.Caption = ""
    Me.ControlBox = False

    but VB won't let me do that.

    Creating form that is completely black isn't really an option I'd like to consider - there is code in the KeyDown Event and Private Global Variables that need to stay with the form and a second form would just mess everthing up.

    Any ideas?
    - Visual Basic 6.0
    - Windows XP Home

  2. #2
    PowerPoster MidgetsBro's Avatar
    Join Date
    Oct 2000
    Location
    Apparently, Internet.com
    Posts
    3,125
    Don't try to set all the properties at runtime. If you do it all at design time, it should work. What kind of program are you making?
    <removed by admin>

  3. #3
    Guest
    Did you try Borderstyle=0 WindowState=2maximized to cover the whole screen and hide titlebar?

  4. #4
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    in the Project Properties menu at the left you can set the Border to 0 - None instead of anything else. As for maximizing im not sure.

  5. #5
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,092
    Generally we tend to not answer three year old questions.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  6. #6
    Addicted Member
    Join Date
    Jul 2003
    Posts
    255
    meh...i got bored and started parusing

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