Results 1 to 11 of 11

Thread: How do I make the form take up the screen???

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2005
    Location
    USA Washington
    Posts
    191

    Question How do I make the form take up the screen???

    How do I make the form take up the screen without the top title bar. You know, full screen.
    Is it possible?
    Last edited by Hiroshi; May 11th, 2005 at 07:00 PM.

  2. #2
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,106

    Re: How do I make the form take up the screen???

    Try setting windowstate to maximized, caption to "", and controlbox to false. I think that will make the window take up the WHOLE screen (including covering the task bar, but that seems to be a side effect of getting rid of the caption bar up top).
    My usual boring signature: Nothing

  3. #3
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: How do I make the form take up the screen???

    I think you need to set the form border style to none and maximize the form.
    kevin
    Last edited by kebo; May 11th, 2005 at 07:52 PM.
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  4. #4
    PowerPoster 2.0 Negative0's Avatar
    Join Date
    Jun 2000
    Location
    Southeastern MI
    Posts
    4,367

    Re: How do I make the form take up the screen???

    Set your Text = ""
    Set the Control Box = False
    Set the form WindowState = Maximized.

  5. #5
    Still learning kebo's Avatar
    Join Date
    Apr 2004
    Location
    Gardnerville,nv
    Posts
    3,762

    Re: How do I make the form take up the screen???

    Quote Originally Posted by Shaggy Hiker
    Try setting windowstate to maximized, caption to "", and controlbox to false. I think that will make the window take up the WHOLE screen (including covering the task bar, but that seems to be a side effect of getting rid of the caption bar up top).
    cool another way... I like options!
    Process control doesn't give you good quality, it gives you consistent quality.
    Good quality comes from consistently doing the right things.

    Vague general questions have vague general answers.
    A $100 donation is required for me to help you if you PM me asking for help. Instructions for donating to one of our local charities will be provided.

    ______________________________
    Last edited by kebo : Now. Reason: superfluous typo's

  6. #6
    Addicted Member
    Join Date
    May 2005
    Posts
    210

    Re: How do I make the form take up the screen???

    speaking of form properties, what do i need to set so that the user will be unable to drag around a child form within its parent form?

  7. #7
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: How do I make the form take up the screen???

    Quote Originally Posted by ultimate_girl
    speaking of form properties, what do i need to set so that the user will be unable to drag around a child form within its parent form?
    You need to set the form up as an MDI Parent before it can host MDI child forms. It's simply a property in the form that you can set at design time called IsMdiContainer.

    Then to display MDI children, use the following code:
    VB Code:
    1. Private Sub AddMDIChild(form as Form)
    2.     form.MdiParent = Me
    3.     form.Show()
    4. End Sub
    Last edited by Ideas Man; May 12th, 2005 at 02:12 AM.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  8. #8
    Addicted Member
    Join Date
    May 2005
    Posts
    210

    Re: How do I make the form take up the screen???

    done that. the problem is if the child form's position is x = 0 y = 0, just by clicking the mouse on the child form, the user can drag the child form to the left-most part of the parent form or whenever he wants to put it hence the x and y values will change.

  9. #9
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: How do I make the form take up the screen???

    Yeah, that's normal behaviour though.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

  10. #10
    Addicted Member
    Join Date
    May 2005
    Posts
    210

    Re: How do I make the form take up the screen???

    so does that mean there is no solution?

  11. #11
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718

    Re: How do I make the form take up the screen???

    No, you could try setting the border style for the child forms to no border also, then they can't move them.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

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