Scaling Applications c# WinForm

2 posts, 0 answers
  1. Damien
    Damien avatar
    68 posts
    Member since:
    Oct 2017

    Posted 20 Oct 2017 Link to this post

    I am still learning as I prepare to code my application from Flash Builder (Flex) to a C# WinForms application and one thing I have on my request list is the scaling of the application.


    At the moment the Flex app has a fixed size, but one thing I can do is scale everything as the user resizes the app smaller or larger. I want to be able to do this in my WinForms app, but I use a number of PNG graphics (currently) for my buttons and I am looking at changing those to something like an SVG file. So my question is, do the controls (like buttons) support SVG images, is it possible to scale the controls (and my app I guess) as the user resizes the window - or am I going about this the wrong way?


    One thing I do need to do is ensure that it looks and runs okay on say a Microsoft Surface where the resolution, etc. could make my app look very small.


    I hope I have explained this well enough, thanks in advance.


  2. Hristo
    Hristo avatar
    1522 posts

    Posted 23 Oct 2017 Link to this post

    Hello Damien,

    Thank you for writing.

    Please consider using windows with docked and auto-sized controls, this way they will keep their proportions once your end users start resizing the application. Considering the vector images, they are not currently supported. A different set of images most probably would be needed if your application would be run on systems with High-DPI like the Microsoft Surface.

    Automatic handling of the High-DPI environments is not natively supported by the WinForms technology as it is DPI-unaware. However, our framework supports and you can enable it following the instructions here:

    I hope this helps. Should you have further questions please do not hesitate to write back.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top