Greetings Every1,
My question here is a combination of my earlier 2 posts. Well I have an exe of my application running. Consider this example...
MyProg (that starts my application with no arguments)
Now if i type this in a run window
MyProg Arg1 (a second instance which is promptly closed by my first instance coz i used App.PrevInstance there to chk for multiple instances, what I want is my first instance should use the arguments Arg1 which my second instance passed). How can this b achieved. Any ideas...
06-10-2004 at 01:05 PM
|
GeoffS Level: VB Lord Registered: 29-09-2004 Posts: 536
Re: Arguments for second instance of a program..
Hi,
Just adapt the code I gave you - put it in the Command function that Steve gave you
If App.PrevInstance then
If x = Arg1 then
'Do what you want with the second instance
Else
End
End If 'x
End If 'App.PrevInstance
____________________________ multi-tasking - the ability to hang more than one app. at the same time.