Click here to Skip to main content
15,888,320 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello! Can I show a form from another application(which is also made by me)? For example: I have application1 and I want it to show form1 from application2 as dialog.
Posted
Comments
mostwanted4 22-Aug-11 14:22pm    
Whoever wants an example click here.

The best way is to extract it from both into a DLL (create a new class library project) then add the assembly to both applications as a reference.
 
Share this answer
 
Comments
mostwanted4 22-Aug-11 11:01am    
The problem is that I want the user to select the dll, so I can't add a reference before I compile the program. Is there a way to call it while the app is running?
Create seperate DLLs with the forms in it. Decorate your forms with an interface that you know. You can load the DLLs at run time and use reflection to check for classes (forms) that implement the interface. Create an instance of the form through reflection and show it to the user.

Cheers.
 
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