Is it possible to display a number of forms using a loop? I can't see how to do it! What I am trying to do is use a loop to place a variable number of forms on the screen, a concept something like:
I realise this is not correct syntax, but it shows the concept. So far, I can display the forms individually like this:
But as there may be a large number, 50 or so, there must be a better way!
Any suggestions welcome.
VB.NET:
for i = 1 to 12
frmInfo(i).show
next
I realise this is not correct syntax, but it shows the concept. So far, I can display the forms individually like this:
VB.NET:
frmZone1new.Text = "Zone " & i + 1
frmZone1new.StartPosition = FormStartPosition.Manual
frmZone1new.Location = New Point(Location(i, 0), Location(i, 1))
frmZone1new.Show()
frmZone2new.Text = "Zone " & i + 1
frmZone2new.StartPosition = FormStartPosition.Manual
frmZone2new.Location = New Point(Location(i, 0), Location(i, 1))
frmZone2new.Show()
But as there may be a large number, 50 or so, there must be a better way!
Any suggestions welcome.