opening form dynamically

Joined
Nov 26, 2006
Messages
9
Programming Experience
Beginner
I have listbox which is populated with menus. I am able to retreive menu's form name from the list box with the following code.

VB.NET:
Dim frmName As String = GetItemText(IIf(ListBox1.SelectedIndex < 0, 1, ListBox1.SelectedIndex))

what i am trying to acheive is to open the form based on the name retrieved from the selected item in the listbox.

May i request for some pointers on this.
 
Back
Top