How to fit Windows Form to any screen resolution?

后端 未结 8 964
长情又很酷
长情又很酷 2020-12-13 18:22

I work on VS 2008 with C#. This below code does not work for me. My form was designed in 1024 x 768 resolution.

Our clients laptop is in 1366 x 768 resolution. To so

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 18:45

    You can simply set the window state

    this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
    

提交回复
热议问题