Topmost mdi child windows.

Topics: Help
Nov 28, 2012 at 9:29 AM
Edited Nov 28, 2012 at 9:33 AM

I tried to change the layout of my project so that the Gmapcontrol was placed onto the MDIparent form always visible as a bottom layer. And then place MDI child form ontop of the mapcontrol when I need the functionality of these forms..

However I cant see the mdiChild forms, I gues that the gmapcontrol is always ontop hiding the childforms..

I am sure someone knows how to deal with this. -Please help !

   ' Display the new form.      

        Dim newMDIChild As New frmImportPOI()
        ' Set the Parent Form of the Child window. 
        newMDIChild.MdiParent = Me
        ' Display the new form. 
        newMDIChild.TopMost = True
        newMDIChild.BringToFront()
        newMDIChild.Show()
  
Coordinator
Nov 28, 2012 at 9:40 AM

newMDIChild.TopMost = True // ?

Nov 28, 2012 at 9:43 AM

No it's not working 

Nov 28, 2012 at 9:57 AM

I modified the code a bit, I hide the Gmapcotrol and the mdichild form is revealed, the Gmap is 
alwas ontop is my conclusion.. Any solution ?

   
Dim newMDIChild As New frmImportPOI()
        ' Set the Parent Form of the Child window. 
        newMDIChild.MdiParent = Me
        ' Display the new form. 
        'newMDIChild.TopMost = True
        newMDIChild.BringToFront()
        newMDIChild.Show()
        GMap1.Visible = False

Nov 28, 2012 at 10:16 AM

 

I have drawn controls on the MDI parent. , its not a good idea i found out,. Controls are always placed on MDI children excluding status bar, menu bar etc... So working with the map on a mdiChild form it's working good.  -Thanks for your answer radioman

Coordinator
Nov 28, 2012 at 10:16 AM

it's not gmap related, it can be any other control