Met de volgende code laadt ik 3x een nieuw formulier, gebaseerd op Form1. Dit gaat helemaal goed, maar hoe kan ik nu later opvragen welk formulier de Focus heeft. Ik wil dus x op kunnen vragen van het geactiveerde formulier. Hoe doe ik dat?
Public NwForm(3) As New Form1
Private Sub Command1_Click()
for x=0 to 3
Load NwForm(x)
NwForm(x).Show
x = x + 1
next x
Public NwForm(3) As New Form1
Private Sub Command1_Click()
for x=0 to 3
Load NwForm(x)
NwForm(x).Show
x = x + 1
next x