Results 1 to 4 of 4

Thread: Always_On_Bottom

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Phx, AZ USA
    Posts
    23

    Post

    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

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jan 2000
    Location
    Phx, AZ USA
    Posts
    23

    Post

    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

  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post

    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:
    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
    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).

    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).]

  4. #4
    Junior Member
    Join Date
    Feb 2000
    Location
    Mesa, AZ, USA
    Posts
    16

    Thanks SeaWeed

    Thanks for the input. I ended up just setting the background form to .enabled = false.
    Seems to work pretty good.



    Thanks again.


    Dubi

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