Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Converting Windows Application to DLL
 

Converting Windows Application to DLL

Hi,

I have windows application which hasthree text boxes and on button.
I am addingthe values from textbox1 &textbox2 and showing he result intextbox3 when the button is clicked.
Now i want convert this application into a DLL and use the DLL in other applications.

Please give ideas.
Manoj Arul  Monday, December 15, 2008 8:46 AM
Hi Nila,

I advice youto create a UserControl that contains three TextBox and a Button. Add code in the button's Click event handler to add the values in the first two TextBox and show it in the third TextBox. Build the application, and then you can add the UserControl on any form you'd like to reuse the function.

You can create the UserControl in a Windows Application project or a Windows Control Library project. The only difference is that the former project produces a .exe and the latter produces a .dll file.

In .NET world, both .exe and .dll are assembly and can be referenced by other .NET application.

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Linda Liu  Tuesday, December 16, 2008 8:44 AM
Hi!

Usually, dll's do not contain interfaces. They are used tostore general operations, like functions that make mathematical calculations, connections to databases and so on. What you wannado is to store a interface into a dll. I do notsee the need for that.
Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
Lucian Baciu  Monday, December 15, 2008 9:19 AM
Hi,

Thanks. Is it possible to convert windows application into a DLL
Manoj Arul  Monday, December 15, 2008 10:13 AM
No .
Lucian Baciu, MCTS, http://studentclub.ro/lucians_weblog
Lucian Baciu  Monday, December 15, 2008 12:34 PM
Hi Nila,

I advice youto create a UserControl that contains three TextBox and a Button. Add code in the button's Click event handler to add the values in the first two TextBox and show it in the third TextBox. Build the application, and then you can add the UserControl on any form you'd like to reuse the function.

You can create the UserControl in a Windows Application project or a Windows Control Library project. The only difference is that the former project produces a .exe and the latter produces a .dll file.

In .NET world, both .exe and .dll are assembly and can be referenced by other .NET application.

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Linda Liu  Tuesday, December 16, 2008 8:44 AM

You can use google to search for other answers

Custom Search

More Threads

• Terrarium 1.2 Server -> charts fix
• ClassRoom use of Terrarium
• Using VS Studio .NET vs. VS Studio .NET 2003 w/ Pocket PC TaskVision Client
• Is taskvision free?
• how does the SectionHeader.vb control goes on thenMiddlePane.vb
• HTTP status 401: Access Denied
• SQL-Server setup
• I want a ITXCO10.dll in WIN NT.
• TaskVision Client Install error
• Cannot uninstall TaskVision