locked
Mdi Child Form Location Changing Problem RRS feed

  • Question

  • I had an vb.net desktop application which uses MDIForm.In that application all the child formes are in maximized state.When i am open any form and minimized,then that child form gets minimized and no problem for for the first time.Then i have to maximize and minimize the same form then there is an automatic vertical scroll appears on MDI Form.And also the location of child form goes downwards.Similar Problem happends for other forms also.see the below image.Need any solution for that

    Tuesday, May 22, 2018 10:02 AM

All replies

  • I had an vb.net desktop application which uses MDIForm.In that application all the child formes are in maximized state.When i am open any form and minimized,then that child form gets minimized and no problem for for the first time.Then i have to maximize and minimize the same form then there is an automatic vertical scroll appears on MDI Form.And also the location of child form goes downwards.Similar Problem happends for other forms also.see the below image.Need any solution for that

    Hi muraleedharan.K,

    You use MDI Form in your application, and all child forms are in maximized state. As you said that you maximize and minimize the form, there is an automatic vertical scroll on the MDI form.

    When I minimize the many child forms, the icon will appear at the bottom left and horizontally, but your picture show that the icon appear vertically, do you moved the minimize d icon? When I move the minimized icon beyond the scope of the MDI, there is  an automatic vertical scroll appears on MDI Form.

    Best Regadrs,

    Cherry


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, May 23, 2018 5:47 AM
  • Hi Cherry

    Form is in horizontal state,but when we minimizing on second time it goes to vertical position.

    Dim ChildForm As New frmUsersList
            ' Make it a child of this MDI form before showing it.
            ChildForm.MdiParent = Me

            ChildForm.WindowState = FormWindowState.Maximized

            ChildForm.FormBorderStyle = Windows.Forms.FormBorderStyle.Sizable


            ChildForm.BringToFront()

            ChildForm.TopMost = True


            
           
            ChildForm.Show()



    Wednesday, May 23, 2018 7:08 AM