Ho perso diverso tempo, con risultati insoddisfacenti.
Posto un esempio (l'ultimo, in ordine di tempo ...). C'è un amico che mi può dare una mano?
codice:
Select Case Button.Key
' Torna indietro:
Case "Sin"
' Va Avanti:
Case "Dex"
For i = 0 To Forms.Count
If Forms(i).Name <> "MDIForm1" Then
Select Case Forms(i).Name
Case Is = "Form1"
If byFrmM1 = 0 Then
Form1.SetFocus
byFrmM1 = 1
Exit For
End If
Case Is = "Form2"
If byFrmM2 = 0 Then
Form2.SetFocus
byFrmM2 = 1
Exit For
End If
Case Is = "Form3"
If byFrmM3 = 0 Then
Form3.SetFocus
byFrmM3 = 1
Exit For
End If
End Select
End If
Next
End Select