locked
why child form at the back of the objects are placed on MDI form? RRS feed

  • Question

  • vb.net 2010

    why child form at the back of the objects is placed on MDI form?
    (datagridview and button1 are objects of mdi form)


    • Edited by Ashkan209 Tuesday, October 8, 2013 10:31 AM
    Tuesday, October 8, 2013 9:29 AM

Answers

  • this is normal, all controls you put on, the MDI will always be in front of it. either add a panel and dock it in the MDI then add your controls to it, this will decrease the available space for all child forms in your application

    Or

    call the BringToFront() SendToBack() as mentioned in that example: http://stackoverflow.com/questions/3698445/problem-with-controls-in-mdi-form


    Please remember to 'Mark as Answer' the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, October 8, 2013 10:51 AM

All replies

  • Screenshots, please.

    If possible, please submit your sample project onto SkyDrive for us to analyze.


    Click For donating:Free Rice For the poor
    For spamming-sender issues, you can either report it at Microsoft Spamming Issue, or just find "Report Spam Here+Number" at Forum Issue;You can also find "Verify Your Account+Number" at "Forum Issue", where you can submit to be confirmed to paste links or images.
    For more things to talk about? StackOverFlow is your choice.

    Tuesday, October 8, 2013 9:30 AM
  • thanks'

    I add screnshot

    Tuesday, October 8, 2013 10:32 AM
  • It is because the entire form is already filled with a Control called MdiClient to host the Mdi Child Form.

    Muthukrishnan Ramasamy
    net4.rmkrishnan.net
    Use only what you need, Reduce global warming

    Tuesday, October 8, 2013 10:50 AM
  • this is normal, all controls you put on, the MDI will always be in front of it. either add a panel and dock it in the MDI then add your controls to it, this will decrease the available space for all child forms in your application

    Or

    call the BringToFront() SendToBack() as mentioned in that example: http://stackoverflow.com/questions/3698445/problem-with-controls-in-mdi-form


    Please remember to 'Mark as Answer' the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Tuesday, October 8, 2013 10:51 AM