So I posted a question the other day about dynamically loading DLL components. And it works great if I know the type like this(whatever.whatever):
whatever.whatever
Assembly asm = Assembly.LoadFrom(openFileDialog1.FileName); Type myType = asm.GetType("whatever.whatever"); UserControl uc = (UserControl)Activator.CreateInstance(myType); uc.Name = "uc"; this.Controls.Add(uc);
But now how would I do this without knowing the type before?
Thanks :)
roguemat wrote:But now how would I do this without knowing the type before?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)