GUI in DLL

  • Thread starter Thread starter Ritu
  • Start date Start date
R

Ritu

Hi All,

I need to create a DLL in CSharp which should be able to support the UI
also.
It s feasible.Can any body please send me pointers to start with.

Here is the problem

I need to create a DLL supporting a GUI screen ad some exposed Api's . Any
Client (Exe) should
be able to load this Dll and Embed the UI in it self. as well as call the
exposed Api's.

Thanks in advance,
Ritu
 
Ritu,

In order to incorporate some GUI functionality in a dll you have to
create an assembly that contains some winforms.

Check the following :

"Developing Windows Forms Controls"
ms-help://MS.MSDNQTR.2005APR.1033/cpguide/html/cpconcreatingwinformscontrols.htm

"Assemblies Overview"
ms-help://MS.MSDNQTR.2005APR.1033/cpguide/html/cpconAssembliesOverview.htm

Hope this helps...
 
Ritu said:
I need to create a DLL in CSharp which should be able to support the UI
also.
It s feasible.Can any body please send me pointers to start with.

Here is the problem

I need to create a DLL supporting a GUI screen ad some exposed Api's . Any
Client (Exe) should
be able to load this Dll and Embed the UI in it self. as well as call the
exposed Api's.

You don't need to do anything special - just add references to the
assemblies you need to use, and use the normal UI classes.
 
Jon Skeet said:
You don't need to do anything special - just add references to the
assemblies you need to use, and use the normal UI classes.


Yep. I find the easiest way to do this, instead of adding the references
yourself, is to create a Windows App project, then just change the output
type from EXE to DLL.
 
Back
Top