The hint was that you need to post your code so we can see what's wrong with it.If you've done what I said then it would be working. If it's not working then you haven't done what I said. As you haven't shown what you've done, I can't tell what you've done wrong.
I am able to open all child forms corresponding to the click event in the MenuToolStrip ...all in the Parent form
Now the problem is that I cannot minimize child forms when I minimize Parent form..I want child forms also to minimize along with the Parent form..
Also are child forms still not attached to the parent Form is also my question here.....
Private Sub CurrentMaint_TSMI_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CurrentMaint_TSMI.Click
Dim mdiChild As frmTaskWork = frmTaskWork.Instance()
With mdiChild
.MdiParent = Me 'setting the Mdi form as parent of the mdichild variable.
.Show() 'showing the mdichild form
.Focus() 'giving focus to the mdichild form
End With
End Sub
Public Class frmTaskWork
Private Shared formInstance As frmTaskWork
Public Shared ReadOnly Property Instance() As frmTaskWork
'checks to see if the form is open already and opens
'the for if it hasn't already been open.
Get
If formInstance Is Nothing Then
formInstance = New frmTaskWork
End If
Return formInstance
End Get
End Property
Private Sub frmTaskWork_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
formInstance = Nothing 'set variable to nothing
End Sub
end Class
frmTaskWork.MdiParent = Me
frmTaskWork.Show()
frmTaskWork.Activate()