Are you trying to make another project within a solution your startup project? If so, just right-click on it and select use as startup from the context menu.
Chip H.
____________________________________________________________________
Donate to Katrina relief:
First step is to make sure you have a reference to the other project.
1. Make sure everything builds cleanly.
2. Add the reference to the project that has the MDI form in it. (Project | References)
3. In a method in a class, make sure you can see the objects in the other project by typing the form name and a period -- you should get some intelisense info showing up.
If you see some items from the other project, but not the form, you need to make the form public.
Then add code that says "MyForm.Show", which should show the form.
Note that I'm doing this from memory, as I no longer have VB6 loaded.
Chip H.
____________________________________________________________________
Donate to Katrina relief:
My only trouble now lies on step 2,
Looks too complicated for a beginner.
I have never created a reference by pro. code.
would you kindly guide on this.
Let's see if I can dig up that old corduroy jacket with the leather patches on the elbows, and find that pipe. Ah yes, there we are.
Paul, firstly, do you just want to use the MDI form in two different projects, that have nothing else to do with each other, or are these projects meant to be run together in some way once you've completed them? Please answer that first.
If you want to run another project while your main project is running, use the Shell() command to run the other project. You cannot add a project through the Project | References menu. That is for type libraries.
Or do you want to work on two projects in the IDE at the same time?
HyperEngineer
If it ain't broke, it probably needs improvement.
Thank you so much.
It has become clearer now I see the point.
I have five projects each with individual mdi's shareing the same backend data source.
I wanted a peace of mind while concentrating on each module ie.
>Stock Control
>Inventory Control
>Finace Control
>Payroll System
>With a main form just to be switchboard
Sorry to be slow in responding to this. I think you need to set up another project as an ActiveX DLL that will handle the processing of the backend data source. First, see if you can come up with data methods that would be shared by each of your five projects. Then, we can show you how to implement your design.
I have managed to create ActiveX DLL Project and referenced this on the other five.
I have also copied a common data (filter) function to a method1 on the new Project.
Sorry for having been out of contact for long, my HD crushed with alot of work.
You want to be careful when you make changes to your ActiveX DLL, in the context of one of your five projects, that such changes are appropriate for the other four as well. As you think this through, you'll sort of distill out the functionality that is common to all of them. That's what should go in the DLL.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.