Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Working With Multiple Projects 3

Status
Not open for further replies.

paulgenga

Programmer
Jan 8, 2004
61
KE
What Comand is used to open / show a new project.
How do you start working on a different Project platform

e.g - (this does not work)
Code:
Dim p as MyProject
p.Show

Please help.

Paul
 
Well this was just a good guess of what it could look like to shift focus from one project (e.g startup) to another.

Please help me out on this, Thanks in advance.

Paul
 
I still don't know what you're trying to do.

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:
If you want to get the best response to a question, please read FAQ222-2244 first
 
How do i open the mdi form from another project in the same group. please help i am ver new to vb
 
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:
If you want to get the best response to a question, please read FAQ222-2244 first
 
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.

Thanks 1M
Paul
 
You have two VB projects, right? Make sure both build cleanly.

Then in the calling project, go to the Project menu, and select References. Find your other project listed in there, and select it.

You can now use the objects from the other project.

=============

I suspect I'm not explaining it that well. Can someone else help out?

Chip H.


____________________________________________________________________
Donate to Katrina relief:
If you want to get the best response to a question, please read FAQ222-2244 first
 
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. [pipe]

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.

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

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

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

Bob
 
Common to all is the logon dialog form and a event log for the users.
Can this be done?
 
Sure. Put those in your ActiveX DLL. Instantiate classes from the clients, have methods and properties that give you the behavior and state you want.

Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top