944,132 Members | Top Members by Rank

Ad:
Jun 27th, 2006
0

MDI Forms

Expand Post »
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
Similar Threads
Reputation Points: 13
Solved Threads: 3
Junior Poster in Training
NewVBguy is offline Offline
71 posts
since Mar 2005
Jun 27th, 2006
0

Re: MDI Forms

Sure.

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

in the MDI Form code window paste:

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub MDIForm_Click()
  2. MsgBox Me.ActiveForm.Caption
  3. 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...
Last edited by agrothe; Jun 27th, 2006 at 8:22 pm. Reason: wrong code tag
Reputation Points: 37
Solved Threads: 18
Junior Poster
agrothe is offline Offline
151 posts
since Jun 2006
Jun 27th, 2006
0

Re: MDI Forms

thanks a lot...
Reputation Points: 13
Solved Threads: 3
Junior Poster in Training
NewVBguy is offline Offline
71 posts
since Mar 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: MDI From Query
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Datareport -Report Header Section





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC