0

I have a SQL table with a list of forms (frmForm1, frmForm2)

i have a listbox that fills from this table and i would like it to call the form in the 'FormToCall' Column


How can i call a form if i only know the form name at runtime?

2
Contributors
2
Replies
4
Views
10 Years
Discussion Span
Last Post by ptaylor965
1

I have found the solution

Dim assem As Reflection.Assembly = Me.GetType.Assembly
Dim frm As Form = assem.CreateInstance(assem.GetName.Name & ".frmMaint")
frm.Show()

Thanks

Votes + Comments
Good :)
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.