Opening form from DLL

Ralph

Member
Joined
Jan 1, 2008
Messages
6
Programming Experience
5-10
Hello,

Can someone give me sample code how to open a form using reflection?

I have a main app (exe) in the forms.dll there is a form called frmParameters.

Can someone explain me how to open this in the main app.

The idea is that the form name is stored in a database; retrieved and then opened.

Thanks

Ralph
 
VB.NET:
Dim f As Form = Activator.CreateInstance("forms", "forms.Form1").Unwrap
f.Show()
Given 'forms' is also the namespace.
 
Back
Top