loading a form through reflection

  • Thread starter Thread starter Brian Henry
  • Start date Start date
B

Brian Henry

How would i do this through using reflection (yes i know how to do it with
out it, im just trying to learn more)

I have a DLL with a form in it, named frmTestForm

now in the main application i want to load that form through reflection, how
do i access that form by name using reflection or even start to go about
loading it? thanks
 
* "Brian Henry said:
How would i do this through using reflection (yes i know how to do it with
out it, im just trying to learn more)

I have a DLL with a form in it, named frmTestForm

now in the main application i want to load that form through reflection, how
do i access that form by name using reflection or even start to go about
loading it? thanks

Take a look at the 'Activator.CreateInstance' method.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top