Hello,
What is the best strategy so that the controls are not distorted on screen scales at 100%, 200%?
In 100% scale if it looks good. On scale 150% wrong!
I attach images. Please rename SEND.png as SEND.RAR
Best regarsds
3 Answers, 1 is accepted
If your application is declared as DPI-aware, all RadControls will scale their UI elements in accordance to the current DPI settings automatically: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/dpi-support
In order to produce as good layout as possible when running your application on monitors with different DPI scaling, it is important to have some thoughts in mind before you start designing the application. Please have a look at the general tips in the following help article: https://docs.telerik.com/devtools/winforms/knowledge-base/hdpi-tips-and-tricks
Consider using container controls, like TableLayoutPanel. Thus, the controls do not have specific location and size. This way when the form is resized the controls will fit in the available space. Design the interface of your forms so that it can “reflow” – use Anchored, Docked, AutoSized controls where possible.
I hope this information helps. If you need any further assistance please don't hesitate to contact me.
Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.
I have tried to convert that form that is ShapedForm to RadForm but the form has failed (many errors in the MyForm.designer.cs), and for that reason I have lost what I was doing since I have to undo my changes (I had included the TableLayoutPanel).
I wanted to convert it to RadForm since when I assign Dock = Fill to the main Table Layout Panel (the one that wraps everything in my form), the title bar disappears.
Why does my form crash when I try to convert it from ShapedForm to RadForm? How could I convert it to RadForm?
Hi, Eusebio,
The app.manifest file is the most common way for declaring the application as DPI-aware or unaware: https://docs.telerik.com/devtools/winforms/telerik-presentation-framework/dpi-support#application-manifest-file
There is a table with the available values listed in the referred section. Thus, you can check whether your application is DPI-aware or not. You can also change the default values.
It wouldn't be easy to determine why the conversion process from ShapedForm to RadForm was not successful on your end. However, please note that you have to save all existing changes first. Then, you can change the type of the form to inherit from RadForm:
Then, remove this code line from the Designer.cs:
You can also remove the bottom title bar by selecting it and hitting delete. That is it.
I believe you will find it useful. Should you have further questions please let me know.Regards,
Dess | Tech Support Engineer, Sr.
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.