The following code was done in VB.NET 2003. I have a MDI application that I can open any number of dialog type boxes
and this will close the one that is in the foreground no
matter what type of form it is. This only requires a menu
on the parent form.
Private Sub fileClose_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles fileClose.Click
If (Not Me.ActiveMdiChild Is Nothing) Then
Me.ActiveMdiChild.Close()
End If
End Sub
I want to do the same type of thing in VB 6.0, I've tried
traping the Form_Activate, Form_Deactivate events but that
does not seem to be leading me in the right direction. Any
help would be greatly appreciated.
Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie
and this will close the one that is in the foreground no
matter what type of form it is. This only requires a menu
on the parent form.
Private Sub fileClose_Click(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles fileClose.Click
If (Not Me.ActiveMdiChild Is Nothing) Then
Me.ActiveMdiChild.Close()
End If
End Sub
I want to do the same type of thing in VB 6.0, I've tried
traping the Form_Activate, Form_Deactivate events but that
does not seem to be leading me in the right direction. Any
help would be greatly appreciated.
Everything I know I learned from The Grateful Dead and Buffy The Vampire Slayer
Charlie