Hi WONGTony-4228,
The Form class limits the size of the form to no larger than the screen size. It is done in the SetBondsCore overlay of the Form and cannot be changed.
In other words, it is limited by the size in SystemInformation.MaxWindowTrackSize. The value returned by MaxWindowTrackSize refers to the size of the entire desktop, and the user cannot drag the window frame to a size larger than these sizes.
You can set the MaximumSize of the Form to be smaller, but not larger than MaxWindowTrackSize.
Dim w = SystemInformation.MaxWindowTrackSize.Width
Dim h = SystemInformation.MaxWindowTrackSize.Height
Best Regards,
Daniel Zhang
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.