|
-
Nov 1st, 2000, 11:46 PM
#1
Thread Starter
Addicted Member
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
-
Nov 2nd, 2000, 12:28 AM
#2
PowerPoster
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?
-
Nov 2nd, 2000, 01:12 AM
#3
Did you try Borderstyle=0 WindowState=2maximized to cover the whole screen and hide titlebar?
-
Jul 12th, 2003, 12:09 PM
#4
Addicted Member
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.
-
Jul 12th, 2003, 12:18 PM
#5
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
-
Jul 12th, 2003, 04:55 PM
#6
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|