|
-
Sep 8th, 2000, 08:30 PM
#1
Thread Starter
Hyperactive Member
Is there a way to have it so 2 copies of your program are running at the same time. Like for instance someone opens yourporgram bydouble clicking on the exe then decides to double click on it again. 2 are going to run now. I thought about what if when I start the prog to write to the registry and say its running then when it gets shut down then write again to the registry and say its not running. But the porblem with this is if something crashes and the computer has to be shut down before that line of code runs then he can never use my prog again. Does anyone know how to do this? I hope I explained it well. Thanks!!
-
Sep 8th, 2000, 08:39 PM
#2
Frenzied Member
Code:
If App.PrevInstance = True Then
MsgBox("The program is already running!")
End
End If
source = http://www.vb-world.net/tips/tip25.html
NXSupport - Your one-stop source for computer help
-
Sep 8th, 2000, 08:42 PM
#3
Fanatic Member
if you want to see if another version of your program is running, checkt the App.PrevInstance property:
Code:
If App.PrevInstance Then
MsgBox "Another version is running"
End
End If
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Sep 8th, 2000, 08:43 PM
#4
Fanatic Member
sorry, dimava, your post didn't show up when i posted.
GWDASH
[b]VB6, Perl, ASP, HTML, JavaScript, VBScript, SQL, C, C++, Linux , Java, PHP, MySQL, XML[b]
-
Sep 8th, 2000, 08:44 PM
#5
Frenzied Member
yea, it happens to me all the time
NXSupport - Your one-stop source for computer help
-
Sep 9th, 2000, 05:33 PM
#6
Thread Starter
Hyperactive Member
Hey thanks guy!!!! I apretiate your help!
-
Sep 10th, 2000, 08:50 AM
#7
Frenzied Member
Code:
'DON'T USE END!
'Use Unload <FORMNAME!>
Unload Form2
Unlod Me
etc...
Jop - validweb.nl
Alcohol doesn't solve any problems, but then again, neither does milk.
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
|