0

Hi Everyone,
This is probably simple but I don't know how. Can someone show me a code the test if the child form is currently active or currently the one open in front of my screen.
Thanks in advance.

newvbguy

2
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by NewVBguy
0

Sure.

Create a new project, add an MDI form and 2 or more MDI Child forms.

in the MDI Form code window paste:

Private Sub MDIForm_Click()
MsgBox Me.ActiveForm.Caption
End Sub

Click on the MDI form to see which child form is currently active. The .ActiveForm property gives you complete access to the current active MDI Child. For example: .hide .show .caption .width .height etc...

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.