Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Ok...I have an MdiParent form named MAIN & 3 other forms as MdiChildren. When I call a frmEditOrder.Show from the Tracking form it loads a brand new form and doesn't include it within the Parent Form, MAIN. Any ideas? Below is my code thus far.....

 

 

[b]' MAIN CODE [/b]
Private Sub MAIN_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
       OrderEntry.MdiParent = Me
       Tracking.MdiParent = Me
       frmEditOrder.MdiParent = Me
   End Sub

   Private Sub mnuTracking_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuTracking.Click
       Tracking.Show()
       Tracking.WindowState = FormWindowState.Normal
       Tracking.StartPosition = FormStartPosition.CenterScreen
   End Sub

[b]' Tracking CODE [/b]
Dim frmEditOrder As EditOrder = New EditOrder()

With frmEditOrder
   .StartPosition = FormStartPosition.CenterParent
   .Show()
End With

Posted

Have you set Form MDIChild Property to True?

 

 

EDIT: Hey.. I didnt notice its for .Net.. So i am not too sure.. Sorry

Regards,

Anis

Miles to go Before I Sleep.

Posted

Yeah...I've tried doing the same thing, but it didn't work.

Thanks...

Guest lepernet
Posted
Did you set the main forms "IsMdiContainer" property to "true" ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...