views:

23

answers:

2

i have 2 vb projects that run perfectly. but i have this new requirement. I need to open .exe for project 2 from project 1. both the project have sql server database in back. so they have login/password and customer records that show according to customerid's in both. Now when i click "open project2" button in the first project, it should open the second project with the same customer id as in the first one. how can i do that? i hope i am not confusing anyone.

A: 

The Shell command in VB 6 will open an exe, but I agree with Scott. You might want to separate that form into a common DLL that you can load at runtime from your other app.

MCain
A: 

i dont know y but i cant add comments or edit this question, so am adding comment here. Scott - Yes the second project shall have its own lifetime and users shall work on that too. so the shell command can open the new project but it wont check for existing open project will it. Cause i dont want like 50 new files opening just cause the user clicked the button 50 times. Also how do i transfer the customerid from project 1 to newly opened project2. Say customerid 10001 is opened on project1, project 2 should open to that same 10001 customerid so that the user can work simultaneously on both for that customer

refer