I got a problem in my code when i click the button a new panel was created ok but when i scroll down and click the button1 again the new panel was created but it contains a large gap between my last panel
VB.NET:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim panel As New Panel
panel.BorderStyle = BorderStyle.FixedSingle
panel.Height = 100
panel.Width = requirements.Width - 30
panel.Location = New Point(intX, intY)
intY += (panel.Height + 10)
requirements.Controls.Add(panel)
End Sub