How to do full screen ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: How to do full screen ?

  1. #1
    Rachel Guest

    How to do full screen ?

    I would like to have the option for the user to click "full screen" and have
    a form and its frames resized to the size of their monitor so as to cover
    the full screen. The VB windows max property only maximizes the form but the
    frames inside the form stay the same. How can I do this. I imagine it
    necessitates an API call to determine the size of the user's monitor?

    Rachel



  2. #2
    Karl E. Peterson Guest

    Re: How to do full screen ?

    Hi Rachel --

    > I would like to have the option for the user to click "full screen" and have
    > a form and its frames resized to the size of their monitor so as to cover
    > the full screen. The VB windows max property only maximizes the form but the
    > frames inside the form stay the same. How can I do this.


    Hand-code the control (and MDIChild window?) size changes in the Form_Resize event.

    > I imagine it
    > necessitates an API call to determine the size of the user's monitor?


    No, just query the Screen object or the Form itself (assuming it's maximized).

    Later... Karl
    --
    http://www.mvps.org/vb



  3. #3
    Rachel Guest

    Re: How to do full screen ?

    Thanks, but any sample code on this anywhere to get me started?

    Rachel

    Karl E. Peterson <karl@mvps.org> wrote in message
    news:3a65e0c6@news.devx.com...
    > Hi Rachel --
    >
    > > I would like to have the option for the user to click "full screen" and

    have
    > > a form and its frames resized to the size of their monitor so as to

    cover
    > > the full screen. The VB windows max property only maximizes the form but

    the
    > > frames inside the form stay the same. How can I do this.

    >
    > Hand-code the control (and MDIChild window?) size changes in the

    Form_Resize event.
    >
    > > I imagine it
    > > necessitates an API call to determine the size of the user's monitor?

    >
    > No, just query the Screen object or the Form itself (assuming it's

    maximized).
    >
    > Later... Karl
    > --
    > http://www.mvps.org/vb
    >
    >




  4. #4
    Paul Clement Guest

    Re: How to do full screen ?

    On Wed, 17 Jan 2001 21:05:53 -0500, "Rachel" <taurusco@ntelos.net> wrote:

    Thanks, but any sample code on this anywhere to get me started?


    Well for me time is money and I opt for a component to do this rather than futz with code:

    http://www.lyoung.com/


    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)

  5. #5
    John Cantley Guest

    Re: How to do full screen ?

    Here is some for you to play with.

    Private Sub Form_Resize()

    If Me.Height < 3470 Or Me.Width < 4830 Then
    Exit Sub
    End If

    lstView1.Height = ScaleHeight - 200
    lstView1.Width = ScaleWidth - lstView1.Left - 100
    cmdCleat.Top = lstView1.Height + lstView1.Top - cmdCleat.Height
    cmdCancel.Top = cmdCleat.Top
    cmdGO.Top = cmdCleat.Top
    CheckAll.Top = cmdCleat.Top
    lblClassInfo.Top = cmdGO.Top - 480
    lstSelect.Height = lblClassInfo.Top - lstSelect.Top

    End Sub

    John

    "Rachel" <taurusco@ntelos.net> wrote in message news:3a664f4c@news.devx.com...
    > Thanks, but any sample code on this anywhere to get me started?
    >
    > Rachel
    >
    > Karl E. Peterson <karl@mvps.org> wrote in message
    > news:3a65e0c6@news.devx.com...
    > > Hi Rachel --
    > >
    > > > I would like to have the option for the user to click "full screen" and

    > have
    > > > a form and its frames resized to the size of their monitor so as to

    > cover
    > > > the full screen. The VB windows max property only maximizes the form but

    > the
    > > > frames inside the form stay the same. How can I do this.

    > >
    > > Hand-code the control (and MDIChild window?) size changes in the

    > Form_Resize event.
    > >
    > > > I imagine it
    > > > necessitates an API call to determine the size of the user's monitor?

    > >
    > > No, just query the Screen object or the Form itself (assuming it's

    > maximized).
    > >
    > > Later... Karl
    > > --
    > > http://www.mvps.org/vb
    > >
    > >

    >
    >




  6. #6
    Karl E. Peterson Guest

    Re: How to do full screen ?

    Hi Rachel --

    > Thanks, but any sample code on this anywhere to get me started?


    Nope. Every form is unique, as far as resizing goes.

    To determine monitor resolution, use something like this:

    w = Screen.Width \ Screen.TwipsPerPixelX

    Height remains as an exercise for the reader. ;-)

    Later... Karl
    --
    http://www.mvps.org/vb


    "Rachel" <taurusco@ntelos.net> wrote in message news:3a664f4c@news.devx.com...
    > Thanks, but any sample code on this anywhere to get me started?
    >
    > Rachel
    >
    > Karl E. Peterson <karl@mvps.org> wrote in message
    > news:3a65e0c6@news.devx.com...
    > > Hi Rachel --
    > >
    > > > I would like to have the option for the user to click "full screen" and

    > have
    > > > a form and its frames resized to the size of their monitor so as to

    > cover
    > > > the full screen. The VB windows max property only maximizes the form but

    > the
    > > > frames inside the form stay the same. How can I do this.

    > >
    > > Hand-code the control (and MDIChild window?) size changes in the

    > Form_Resize event.
    > >
    > > > I imagine it
    > > > necessitates an API call to determine the size of the user's monitor?

    > >
    > > No, just query the Screen object or the Form itself (assuming it's

    > maximized).
    > >
    > > Later... Karl
    > > --
    > > http://www.mvps.org/vb
    > >
    > >

    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center