Private Sub InitializeComponent() Me.Button1 = New System.Windows.Forms.Button() '★ Button のインタンスを生成している ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(10, 10) Me.Button1.Name = "Button1" Me.Button1.Size = New System.Drawing.Size(100, 40) Me.Button1.Text = "Button1" Me.Button1.UseVisualStyleBackColor = True ' 'Form1 ' Me.Controls.Add(Me.PictureBox1) Me.Name = "Form1" Me.Text = "Form1" End Sub Friend WithEvents Button1 As Button