locked
Open another project in MDI RRS feed

  • Question

  • I am trying to open another application in a MDI child form. I have the main form, and the child form. Should the application be called from it's location, or should I "add existing project" to the main MDI project. I want an application to open in an  MDI child window when called. Something like, File>New>"project name here" and the project opens

    Public Class frmMdiMain
    
    
    
        Private Sub Window_Click(sender As Object, e As EventArgs)
            Dim Window As New MenuItem()
            Window.MdiList = True
        End Sub
    
    
    
        Private Sub ToolStripMenuClose_Click(sender As Object, e As EventArgs) Handles ToolStripMenuClose.Click
            Me.Close()
        End Sub
    
        Private Sub ToolStripMenuCalc_Click(sender As Object, e As EventArgs) Handles ToolStripMenuCalc.Click
            Dim NewMDIChild As New Form2 
            NewMDIChild.MdiParent = Me
            NewMDIChild.Show()
        End Sub
    End Class
    This currently just opens a new form called "form2"


    • Edited by WarMacheen Friday, January 17, 2014 7:39 PM
    Friday, January 17, 2014 7:38 PM