Private Sub Test_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim widthRatio As Single = Me.Size.Width / 300.0F Dim heightRatio As Single = Me.Size.Height / 300.0F Dim scale As New SizeF(widthRatio, heightRatio) Me.Scale(scale) For Each control As Control In Me.Controls control.Scale(scale) control.Font = New Font(control.Font.FontFamily, control.Font.SizeInPoints * widthRatio * heightRatio) Next End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)