下面的是通用的缩放代码。放到afterload中
For Each c As Winform.Control In e.Form.Controls c.Left = c.Left * (SysInfo.ScreenWidth / e.Form.Width) c.Top = c.Top * (SysInfo.ScreenHeight / e.Form.Height) c.Width = c.Width * (SysInfo.ScreenWidth / e.Form.Width) c.Height = c.Height * (SysInfo.ScreenHeight / e.Form.Height) Next
|