I m a beginner of vb.net How Can I Trap the Active Form Name in MDIParent Form ...I Want to trap Active Form Name and want to call the activeforms 's function from menu of MDI Parent .........................
this is a good starting point to what you're looking to do:
‘Determine if form already exists
Dim frmTest As Form
Dim blnFound As Boolean = False
‘Does form already exist?
For Each frmTest In Me.MdiChildren
If .Name = “frmForm” Then
.Activate() ‘Activate previous instance
blnFound = True
If blnFound = False Then
Dim frmForm As New frmForm
.MdiParent = Me
End If[font="] [/font]
basically what this does is looks through all of the child forms looking for a specific form (you can add a check for something entered in the tag property too) anywho if the form is found then it's activated (given focus) if not, then one is created