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?




Reply With Quote