Hi to everyone!
This is my first post, and I really need you help.
I have a visual Basic .net 2010 in fw4
In developement environment works all perfect, but when I pass the app to client computer, gives the following error:
throw an InvocationTargetException target exception
And the code breaks here:
My ideia is to list all the forms existing in the application.
Can you help me?
This is my first post, and I really need you help.
I have a visual Basic .net 2010 in fw4
In developement environment works all perfect, but when I pass the app to client computer, gives the following error:
throw an InvocationTargetException target exception
And the code breaks here:
Public FormsApps As New List(Of Form) FormsApps.Clear() For Each t As Type In Me.GetType().Assembly.GetTypes() If t.BaseType.Name = "Form" Then Application.DoEvents() FormsApps.Add(CType(Activator.CreateInstance(t), Form)) Application.DoEvents() End If Next
My ideia is to list all the forms existing in the application.
Can you help me?