Click here to Skip to main content
15,899,679 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Can i create a form inside my dll codes i created? i want to create a new form or use the messagebox.show inside my .dll codes.

How to do that?
Posted
Comments
maneavnash 15-Jul-13 3:02am    
yes u can create form or message.box in dll project

1 solution

You can...provided you are working in a WinForms environment. If you try to use them in a Web based environment, then form and / or message box will appear at the server, not the client...

To add a Form to a DLL, just add it to the project as normal - as if it was to an EXE file. You can call the form exactly as you would in your "normal" project, or from the EXE project once you have added a reference to the DLL project and the appropriate using statement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900