High Dpi message box

2 posts, 0 answers
  1. Roger
    Roger avatar
    6 posts
    Member since:
    Jul 2012

    Posted 31 Jul 2014 Link to this post

    Hi

    I'm currently designing my application for 1920*1080 screen res which seems to be a popular choice for many hi dpi laptops native resolutions.

    I've managed to use some of the code in the forum to good effect and I'm experimenting with the code provided by Ivan Todorov in his useful high dpi article.

    If I use the MS message box in my code the dialog size is ok for high res, using radmessagebox I get a reduced size. Can you provide some code or ideas on how to rectify this?

    Any other advice or code on adapting to high res screens would be appreciated, although I realise that at the moment there doesn't seem to be a complete solution.

    Thanks

    Roger
  2. George
    Admin
    George avatar
    500 posts

    Posted 05 Aug 2014 Link to this post

    Hello Roger,

    Thank you for writing.

    In this case you can manually change the size of the controls. Keep in mind that this will also require you to change their location. You can get the form from the Instance​ property of RadMessageBox. You can also iterate its controls:
    foreach (Control ctrl in RadMessageBox.Instance.Controls)
    {
        //do something with ctrl
    }
     
    RadMessageBox.Instance.MinimumSize = new Size(0, 1000);

    I hope this information helps. 

    Regards,
    George
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top