![]() Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.LoadįW = CInt(My.(0, I))įH = CInt(My.(I + 1, My. - I - 1)) Public Class Form5 ' Example regarding resizing forms and control bounds Here is a simplified example of variable form sizing resulting in fonts and controls being resized correctly. If the user changes their windows display setting, this will be reflected in the pixel width/height that is returned. Height) to see how much room you've got to play with. WPF make this all easier, but if your are like myself a stickler for windows.forms, you need to take care of all those details yourself in code - usually the load event, the resize event, or maximise events. The point is you need to use methods in the size and layout of all your forms, dialogs, and controls, and fonts on your user interfaces. Whether the user choices 100%, 125% or whatever. Have you considered the users choice in windows/settings/system/display.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |