I have tried that, here is my code, why cant I see tvwMain?
Many thanks.
Private Sub mnuFileNew_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles mnuFileNew.Click
Dim frmNew As Form
Dim strProjectName As String
frmNew = New frmBuilder()
strProjectName = InputBox("Please enter new Project Name:"
If strProjectName <> "" Then
frmNew.MdiParent = Me
frmNew.Text = "New Project"
frmNew.tvwMain.nodes.add(strProjectName) 'this control is not recognised
frmNew.Show()
Else
frmNew.Close()
frmNew.Dispose()
frmNew = Nothing
Beep()
End If
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.