question

JordanHalgunseth-6757 avatar image
0 Votes"
JordanHalgunseth-6757 asked JiachenLiMFST-9349 edited

let use control width of form

how do i let user set width and height of form

dotnet-standard
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

cooldadtx avatar image
0 Votes"
cooldadtx answered

The easiest solution is to make your form resizable (which is the default). Then they can use the mouse to resize the form however they want. If you want to persist that then when the app shuts down save the current form size to a persisted location like a file in their documents or appdata directory. I'm assuming a main form here but the process remains the same for any form.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JiachenLiMFST-9349 avatar image
0 Votes"
JiachenLiMFST-9349 answered JiachenLiMFST-9349 edited

Hi @JordanHalgunseth-6757 ,
You can refer to the following document.
Using Application Settings and User Settings
Using My.Settings Object to save user settings and then load it every time the app starts.
Best Regards.
Jiachen Li


If the answer 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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.