Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Load specific userControl from DLL

$
0
0

Hi,

I have created a DLL class and added two UserControls in it, UC01 and UC02.

In my WinForm application, I want to reference to the DLL using:

Assembly objAsm = Assembly.LoadFrom(@"C:\UC_FILES\MyDLL.dll");

Now, how can I locate a specific user control from that DLL and add it using:

userControl.Controls.Add(selected_uc);

Thanks,

Jassim


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>