Load form by reflection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I try load a form by reflection :

Assembly myAssembly = Assembly.LoadFrom(dtr.GetString(0));
Form frmForm = myAssembly.CreateInstance("Nox.Grade") as Form;

but a NullReferenceException is generated.

If I use

Type type = Assembly.GetType("Nox.Grade")

it's Ok.

What is wrong ?
 
Back
Top