|
-
July 15th, 2001, 11:46 PM
#1
Find Previous instance of Application?
is it possible to find the previous instance of my embedded vb 3 application?
Please help me
-
July 16th, 2001, 12:11 AM
#2
Re: Find Previous instance of Application?
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
-
July 16th, 2001, 02:20 AM
#3
Re: Find Previous instance of Application?
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.
...at present time, using mainly Net 4.0, Vs 2010
Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
all the other wonderful people who made and make Codeguru a great place.
Come back soon, you Gurus.
-
July 16th, 2001, 05:01 AM
#4
Re: Find Previous instance of Application?
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
-
January 31st, 2005, 04:43 AM
#5
Re: Find Previous instance of Application?
I just curious, is FindWindow the best solution for this kind of case?
-
January 31st, 2005, 12:58 PM
#6
Re: Find Previous instance of Application?
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..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|