ysac Posted May 25, 2003 Posted May 25, 2003 Hi, I'm programming several projects within one solution. The startup project is a form with a mainmenu and submenus from which a call the forms located in other projects. Opening forms within the same project is no problem. However when I try to open a form located in another project, nothing happens. To give you an idea, here is part of the hierarchical structure: Solution : Administration Project1 : prjMainMenu frmMainMenu 'From which I call all other forms and modules Project2 : Sales frmCustomer frmQuote frmOrder frmInvoice ... Project3 : Stocks frmArticle frmImportPrices ... Project4... So, I would like to open several forms, where frmMainMenu is the Master form from where all other forms are opened via the submenus. Also it should be possible to have several forms opened at the same time, for example, having frmQuote and frmArticle opened at the same time, with frmMainMenu always opened underneath. I worked with Navision before and I'm trying to organize about the same software structure in .NET . Does anyone know how to open these several forms from other projects and how to organize this at the best ? Thanks. Quote
ailzaj Posted May 26, 2003 Posted May 26, 2003 Are you using a class in the main project? ailzaj Quote
*Experts* mutant Posted May 26, 2003 *Experts* Posted May 26, 2003 Projects are different applications, you cant just mix them :) What I would do is, design the forms and put them in a DLL and access them from there. Quote
ailzaj Posted May 26, 2003 Posted May 26, 2003 (edited) You might want to try setting up a class, declaring all the projects & forms Public in it, or like mutant says in a DLL (class). This might be helpful. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcn7/html/vaconInheritanceForBasicLanguage.asp ailzaj Edited May 26, 2003 by ailzaj 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.