I have a listbox that contains a bunch of form names (all forms exist within my project)
When I user clicks on a form name, I need to load it. This is a rewrite of one of my VB6 projects. In Vb6, I didWhich worked just fine, however, in .NET, as I'm sure you know, the keyword Forms doesn't exist. Moreover Windows.Forms does not have an Add method, so I don't know how to translate this properly.Code:Private Sub List1_Click() Dim fForm As Form Set fForm = Forms.Add(List1.List(List1.ListIndex)) fForm.Show End Sub
How would I do that?




Reply With Quote