7
Answers

Importing Compiled .NET UserControl DLLs at runtime

zeldafreak

zeldafreak

20y
7.2k
1
I have a project that requires me to load UserControls from DLLs at runtime. Currently I have been able to grab Fields, Methods, Properties, etc, but I need to extract the whole class so I can display it as a control on my form. Currently I have this coded: DirectoryInfo di = new DirectoryInfo(Application.StartupPath + @"\Libraries"); if (di.Exists) { FileInfo[] dList = di.GetFiles("*.dll"); for (int x=0;x
Answers (7)