Visual Basic.NET - problema con For Each F In FrmPadre.MdiChildren

 
Vista:

problema con For Each F In FrmPadre.MdiChildren

Publicado por adninra (27 intervenciones) el 29/12/2005 11:31:59
^_^' Estoy intentado encontrar una solucion a mi problema de cuando quiera abrir el mismo formulario que esta una vez abierto y todo el mundo me pone la siguiente solucion

Try Dim FrmPadre As Form1 = Me
Dim frmhijo As New Form2
Dim F As Form
For Each F In FrmPadre.MdiChildren
If F.Name = frmhijo.Name Then
F.Select()
Return
End If
Next
frmhijo.MdiParent = Me
frmhijo.Show()Catch ex As Exception
MessageBox.Show(ex.Message
)End Try

pero mi problema es que no me entra en
For Each F In FrmPadre.MdiChildren
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder