General information
Title:
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
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only