UI problems due to change in windows DPI settings

2 posts, 0 answers
  1. Haroon
    Haroon avatar
    38 posts
    Member since:
    Dec 2007

    Posted 09 Jun 2010 Link to this post

    Hello,

    I have an application developed in vb.net 2005 and using Telerik RadControls for WinForms 2008 Q3 Sp2. I have two types of panel controls (RadPanel for gradient back color and system panel control) used on the form (windows form). I set the form's "AutoScaleMode" to "DPI". 

    When I launch my application on a client machine with Windows XP OS and DPI more than 96, all controls adjust accordingly except the controls within RadPanel (as shown in attached image). Another problem with RadComboBox is that it doesn't adjust its size with respect to the size of text inside (unchanged due to DPI change). On the other hand when I use system panel control instead of RadPanel every thing looks fine. Please help me in this case. Also how can my application's UI be unaffected due to windows DPI change. Thanks

    Thanks

    Haroon 

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 15 Jun 2010 Link to this post

    Hi Haroon,

    Thank you for writing.

    The Windows Forms technology by default is not DPI independent. In order to make windows forms controls DPI independent you need to create a new graphics device interface in order to replace the current Windows GDI and GDI+. Since this is completely impractical for almost all applications using Windows Forms I suggest you consider using our WPF control suite. WPF was designed with resolution independence in mind so it will serve your needs well if actually decide to switch to it.

    Write again if you have other questions.

    All the best,
    Victor
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top