Phylum Posted July 4, 2003 Posted July 4, 2003 I will explain this as simply as possible. I have a multi project solution. I have a project with a form. On that form there is a button. When I click the button I want it to open a form in another project. Is this possible? If so how? Quote
*Gurus* Derek Stone Posted July 4, 2003 *Gurus* Posted July 4, 2003 No, however you can launch the process that contains the form using [msdn]System.Diagnostics.Process[/msdn].Start(). Quote Posting Guidelines
Phylum Posted July 4, 2003 Author Posted July 4, 2003 Whats the best way then to write a modular application. I want to be able to send customers PARTS of a program, without affecting everything else. For example: I have a Menu program that calls different parts of my application. If I add a feature to the 'salesman master table editor' I want to be able to send just the 'salesman master table editor' without sending other parts of the solution, incase another programmer is in the middle of adding a feature to another part of the solution. Quote
*Experts* Volte Posted July 4, 2003 *Experts* Posted July 4, 2003 You might want to look in the Tutors Corner for divil's Plugin Based Application tutorial, as well as an accompanying sample that supports a UI included in the plugin. You could put each section of the app in a plugin. I'm not sure how practical this would be with your app, but it's worth investigation. Take a look at those two links. http://www.xtremedotnettalk.com/showthread.php?s=&threadid=49597 http://www.xtremedotnettalk.com/showthread.php?s=&threadid=70920 Quote
*Gurus* divil Posted July 4, 2003 *Gurus* Posted July 4, 2003 Presumably those other projects in the solution compile to dlls, so providing you've made a project reference to them, you can just instantiate their classes like you would a class in the same app. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Phylum Posted July 4, 2003 Author Posted July 4, 2003 But how would I access one of their forms? Code example? Quote
*Experts* mutant Posted July 4, 2003 *Experts* Posted July 4, 2003 If you compile your other project to a DLL and add a reference to that DLL you can create a new instance of a form if its in that class. Then you can access it. Something like this: Dim frmForm As New YourNameSpace.FormClass() That is of course after you add a reference to the DLL. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.