This is a migrated thread and some comments may be shown as answers.

High Dpi message box

1 Answer 43 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Roger
Top achievements
Rank 1
Roger asked on 31 Jul 2014, 02:21 PM
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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 05 Aug 2014, 11:14 AM
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.
 
Tags
Menu
Asked by
Roger
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or