Hi every vbforum members,
Can someone teach me how to set up a childform layout to overlap each page. The mdilayout contains 4 type of members. Cascade , tilehorizontal, tilevertical and arrangeicons. I met a problem against it. When i open a childform it will close the running childform. the code as below.
After I open a childform it will always move like cascade. I want it remain at same position.Code:Public Sub ChildFormLoading(ByVal ChildForm As Form, ByVal FormName As String) For Each f As Form In Me.MdiChildren If Not f.Name = FormName Then f.close() End If Next For Each f As Form In Me.MdiChildren If f.Name = FormName Then Exit Sub End If Next ChildForm.MdiParent = Me ChildForm.Show() End Sub
Can someone professional here give me a help, sorry because i really new at VS...![]()


Reply With Quote
