Results 1 to 12 of 12

Thread: Finished project tried running on other computer, half misses off screen.

  1. #1

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Finished project tried running on other computer, half misses off screen.

    Ok i got my application, put it on my other computer which has a smaller screen. And i have my controls in a panel but it still gets them chopped off by the screen.
    the part highlighted in yellow is the bit that gets missed off, what can i do here as i still want the search to be on the right.

    How can i make the controls fit in the screen even on a smaller screen.
    Attached Images Attached Images  

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Finished project tried running on other computer, half misses off screen.

    Hey,

    You need to make sure that you are using the Anchor and Dock properties of the controls correctly:

    http://www.homeandlearn.co.uk/NET/nets13p1.html

    Also, perhaps think about defaulting your form to maximized, rather than a hard coded width and height.

    Gary

  3. #3
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Finished project tried running on other computer, half misses off screen.

    Anchor those controls to the Right and Top sides only.
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  4. #4

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Re: Finished project tried running on other computer, half misses off screen.

    When you say hard coded size what do you mean, i just have it this size in the designer and thats all

  5. #5
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Finished project tried running on other computer, half misses off screen.

    And what size is that?

    If the other computer has a resolution that is smaller than this size, then it will go off the edge of the screen.

    Gary

  6. #6

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Re: Finished project tried running on other computer, half misses off screen.

    yes the other screen is smaller than that, but if i made it smaller i wouldn't be able to put things where i wanted them would i?

  7. #7
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Finished project tried running on other computer, half misses off screen.

    Quote Originally Posted by Emcrank View Post
    yes the other screen is smaller than that, but if i made it smaller i wouldn't be able to put things where i wanted them would i?
    You missed post #3?
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Re: Finished project tried running on other computer, half misses off screen.

    no, i did that and they the controls went over the top of the buttons. How can i fix that?

  9. #9
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Finished project tried running on other computer, half misses off screen.

    Did you read the article that I linked to?

    It contains everything you need. A combination of docking and anchoring your controls.

    Gary

  10. #10

    Thread Starter
    Fanatic Member Emcrank's Avatar
    Join Date
    Jan 2009
    Posts
    566

    Re: Finished project tried running on other computer, half misses off screen.

    ok thankyou ive fixed that but now i have another problem.
    The webbrowser goes underneith the ToolStrip at the bottom
    The webbrowser is set to dock Fill and the toolstrip is set to Dock Bottom
    How do i fix this?
    its the bit highlighted
    Attached Images Attached Images  

  11. #11
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Finished project tried running on other computer, half misses off screen.

    Hello,

    I have just tried to reproduce this, but I have not been able to.

    What other controls do you have on the form? Can you open the Document Outline Window (View | Other Windows | Document Outline) and show a screen shot of it?

    You might also want to think about using a ToolStripContainer.

    Gary

  12. #12

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