質問編集履歴

1

補足を試し、試しに明日やってみようと思います

2025/06/05 12:00

投稿

turnberry
turnberry

スコア5

test CHANGED
File without changes
test CHANGED
@@ -27,4 +27,40 @@
27
27
  panelアイテムを親コンテナに合わせるとどの位の大きさなのかが分かった。
28
28
 
29
29
  ### 補足
30
+ 「Form1.Designer.cs」から
31
+
32
+ namespace Hit_and_Blow
33
+ {
34
+ partial class HitAndBlow
35
+ {
36
+ #region Windows Form Designer generated code
37
+
38
+ /// <summary>
39
+ /// Required method for Designer support - do not modify
40
+ /// the contents of this method with the code editor.
41
+ /// </summary>
42
+ private void InitializeComponent()
43
+ {
44
+ SuspendLayout();
45
+ //
46
+ // HitAndBlow
47
+ //
48
+ AutoScaleDimensions = new SizeF(9F, 21F);
49
+ AutoScaleMode = AutoScaleMode.Font;
50
+ AutoScroll = true;
51
+ ClientSize = new Size(800, 600); // ここ
52
+ Font = new Font("Yu Gothic UI", 12F, FontStyle.Regular, GraphicsUnit.Point, 128);
53
+ Margin = new Padding(4);
54
+ Name = "HitAndBlow";
55
+ StartPosition = FormStartPosition.CenterScreen;
56
+ Text = "Hit & Blow";
57
+ Click += HitAndBlow_Click;
58
+ ResumeLayout(false);
59
+ }
60
+
30
- 特になし
61
+ #endregion
62
+ }
63
+ }
64
+
65
+ // ここ
66
+ と書いた、部分(20行目)にNEWされております。