Ok....I know how to keep the form always on top. How do I keep the form always on the bottom? I tried using the SetWindowPos API along with the hw_Bottom constant. That didnt seem to work. Anyone know how to do it?
dubi
Printable View
Ok....I know how to keep the form always on top. How do I keep the form always on the bottom? I tried using the SetWindowPos API along with the hw_Bottom constant. That didnt seem to work. Anyone know how to do it?
dubi
In case that wasnt clear....Im trying to create the impression of a theatre mode with my web-browser control. I maximized a form and colored it black and disabled the title bar. If someone clicks on the black form, it pops up to the top. Can I use z-order and make it stay on bottom? Also if you know how to make the title bar disappear...that would be of some help as well.
Thanks
dubi
Well, my first thought is that you could have your background form as the startup form, then from it you can show your theater/browser (movie screen?) form using the vbModal option, which means that within your project the user can only respond to the browser form.
Only when the browser form is dismissed can they activate your "Background" form (and you can simply unload the background form as soon as the theater form is dismissed.
For example, create a project with 2 forms. Name the first one frmBackground and make it the startup form for your project. Make sure you set the BorderStyle property to "None" at design time so the title bar doesn't show. Then name second form frmMovieScreen (this will be your browser/movie player). Then place the following code into frmBackground's code window:
This should create a full-screen black background, and your browser will always be on top until it is dismissed (then the whole thing unloads).Code:Option Explicit
Private Sub Form_Load()
With Me
.Show
.Top = 0
.Left = 0
.Width = Screen.Width
.Height = Screen.Height
.BackColor = vbBlack
End With
frmMovieScreen.Show vbModal
Unload Me
End Sub
Hope that helps a little!
~seaweed
P.S. To make the title bar dissapear, set the form BorderStyle property to "None" at design time.
[This message has been edited by seaweed (edited 02-18-2000).]
Thanks for the input. I ended up just setting the background form to .enabled = false.
Seems to work pretty good.
Thanks again.
Dubi