is it possible to find the previous instance of my embedded vb 3 application?
Please help me
Printable View
is it possible to find the previous instance of my embedded vb 3 application?
Please help me
Hi Greenu Sharma !
I think you can use App
object.
App.PrevInstance
will give the solution for you.
I hope this may help you.
-Poobal
Do what you Love to do and
Commit Yourself to doing it in an
Excellent Fashion
If it has a window fith fixed caption, use findWindow Api (app.previnstance works only in same workspace/dir of startup)
Special thanks to Lothar "the Great" Haensler, Tom Archer, Chris Eastwood, Bruno Paris and all the other wonderful people who made and make Codeguru a great place. Come back soon, you Gurus.
Hi,
Actually am working on embedded Vb 3 in which the app.prevInstance is not working properly.
My mission is to avoid duplicate instance of a particular exe.
when i tried to open twice the same exe the windows CE is giving an error "cannot open file "
I too want the same thing but i want to suppress this message box .
how can i do this ?
please help me
Greenu
I just curious, is FindWindow the best solution for this kind of case?
myron; this question was asked 3 years ago, about a pretty much defunct VB3 ...
surely there were other more recent articles you could have searched?
FindWindow finds you a window starting with that exact text.. I have a module that searches for windows starting with some certain text, but still it's not totally reliable because if you have an Explorer window open showing some folder name that is same as your app then it thinks the Explorer folder is your app.. you can look in the process list instead for EXE named the same as yours..