Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ShowMDIChield Routine
Message
De
17/07/2003 17:36:59
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
ShowMDIChield Routine
Divers
Thread ID:
00811297
Message ID:
00811297
Vues:
48
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
Fil
Voir

Click here to load this message in the networking platform