let use control width of form

Jordan Halgunseth 1 Reputation point
2022-11-17T18:33:07.557+00:00

how do i let user set width and height of form

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,372 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 48,046 Reputation points
    2022-11-17T19:31:43.833+00:00

    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.

    0 comments No comments

  2. Jiachen Li-MSFT 26,506 Reputation points Microsoft Vendor
    2022-11-18T01:35:10.023+00:00

    Hi @Jordan Halgunseth ,
    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.

    0 comments No comments