Unplanned
Last Updated: 14 Aug 2017 11:18 by ADMIN
ADMIN
Hristo
Created on: 13 Jul 2017 14:00
Category: Form
Type: Bug Report
2
FIX. RadForm - large forms appear cut off on systems with high DPI and low resolution
The issue can be reproduced by creating a form with a width of 1200 pixels in an application that is DPI aware. Then the project is run on a tablet with low resolution and an increased DPI, e.g. 1024 x 768 and scaling 120%.

Workaround:
Public Class RadForm1
    Sub New()

        InitializeComponent()

        Dim g = Me.CreateGraphics()
        Dim scale = 96.0 / g.DpiX
        Me.Size = New Size(scale * Me.ClientSize.Width, scale * Me.ClientSize.Height)
        g.Dispose()
        Me.WindowState = FormWindowState.Normal
    End Sub
End Class
0 comments