Information générale
Titre:
ShowMDIChield Routine
I'm updating a vb6 routine for vb.net that show chield forms. The routine check first if the form is in use, if the form aren't in use then create a instance and show it.
Anyone call tell me what to write this example in vb.net?
Thanks,
The code in vb6 :
Sub ShowChield(frmWindow as Form)
Dim intForm as Integer, bolExist as Booleam
For intForm = 1 to Forms.Count -1
If Forms(intForm).Name = frmWindow.Name Then
If Forms(intForm).WindowState = 1 Then Forms(intForm).WindowState = 0
Forms(intForm).SetFocus
bolExist = True
Exit For
Else
bolExiste = False
End If
Next
If bolExiste = False Then frmWindow.Show
End Sub
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement