Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If TextBox1.Text = Answer(Qcount) Then Dim p As New Pen(Color.Red) p.Width = 10 Using g As Graphics = Me.CreateGraphics g.DrawEllipse(p, 70, 20, 230, 230) End Using Else Dim p1 As New Pen(Color.Blue) p1.Width = 10 Using g As Graphics = Me.CreateGraphics g.DrawLine(p1, 0, 0, 389, 280) g.DrawLine(p1, 0, 260, 370, 0) End Using End If 'TextBox1.Text = " " TextBox1.Text = String.Empty SetProblem() 'ここで次の問題を呼び出している。 End Sub