How to show up a MINIMIZED MDIChild?

mmb

Active member
Joined
Aug 1, 2004
Messages
42
Programming Experience
1-3
I have a Menu Button on which a MDI Child is opened. If i click this button next time ...the Opened MDIChild should come up ..if it is minimized or behind other MDIChild.

CODE will be preferred.
PLS HELP me.
 
VB.NET:
Dim blnFound As Boolean = False
        Dim frmTest As Form
        'Does form already exist?
        For Each frmTest In Me.MdiChildren
            With frmTest
                If .Name = "form1" Then
                    .Activate()   'Activate previous instance
                    blnFound = True
                End If
            End With
        Next
        If blnFound = False Then
            form1 = New form1
            With form1
                .MdiParent = Me
                .Show()
            End With
        End If
 
Back
Top