Results 1 to 3 of 3

Thread: Advice on developing for high resolution monitors

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jun 2014
    Posts
    353

    Advice on developing for high resolution monitors

    So the monitor I'm working on at home resolution is 1280x1024

    My app is around 1000 wide.

    However at work we also happen to have massive monitors (24") with high res (can't remember) so the app shows small.

    Now... I can expand my app and resize controls to around 1200.

    I'm using winforms but considering switching to WPF and recreating the forms and copying the code over.

    What is the best way to 'scale' a program properly? So it can fit best on any resolution.

    Advice on how to tackle please

  2. #2
    Fanatic Member Flashbond's Avatar
    Join Date
    Jan 2013
    Location
    Istanbul
    Posts
    646

    Re: Advice on developing for high resolution monitors

    Try to modify these values in Form1.Designer:
    Code:
     Me.ClientSize = New System.Drawing.Size(Screen.PrimaryScreen.Bounds.Width / 2, Screen.PrimaryScreen.Bounds.Height / 2)
    In this example, your form will always be the half of screen resolution.
    God, are you punishing me because my hair is better than yours? -Jack Donaghy

  3. #3
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: Advice on developing for high resolution monitors

    Do you mean you want advice on how to make your view larger (i.e increase font sizes), or do you mean the best way to cope for multiple size forms?

    I design all my forms using docking/anchoring ensuring that the controls fill the form. The user can full screen on a 1080p TV (1920x1080), or run on a 14" 1024*768 and all the controls extend how I need them too. I often use splitter panels as well, so a user can resize parts of the screen to where they are working.

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