1 2 3 4 5 6 7 8 9 10 11 12 |
public partial class Form1 : Form { //Windows Form画面のコンストラクタ public Form1() { InitializeComponent(); // スクリーンサイズの80%で表示する this.Height = (int)(Screen.PrimaryScreen.Bounds.Height * 0.8); } |
Visual Studio 2019 プロジェクト テンプレートは、Windowsフォームアプリ。
![](https://blog.unikktle.com/wp-content/uploads/2022/10/image-14.png)
コメント