CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 2003
    Posts
    100

    Winforms: Arrange controls relatively

    Hello,

    I built a Winforms application with a tab control that contains few pages.
    On each page there are simple controls like: TextBox,ComboBox,Checkbox

    On a 20'' screen, I see all controls.
    On a 15'' laptop screen, I can not see the status bar and part of the pages.

    The resolution of the laptop is identical to the 20'' screen and I tried also highr resolution.

    Can you help ?

    Thanks,
    Zvika

  2. #2
    Join Date
    Jul 2001
    Location
    Sunny South Africa
    Posts
    11,283

    Re: Winforms: Arrange controls relatively

    I'd make use of docakble panels here. Place all the desired controls inside a panel and set the panel's Anchor and Dock properties accordingly

  3. #3
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    Re: Winforms: Arrange controls relatively

    Along with what Hannes said - detect the resolution and adjust the controls/add scroll bars as appropriate.

  4. #4
    Join Date
    Oct 2004
    Location
    Rocket City
    Posts
    220

    Re: Winforms: Arrange controls relatively

    The Control Panel / Use Larger Fonts settings can also have an amazing effect on what Windows shows.

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

Featured