|
-
Aug 14th, 2000, 09:13 AM
#1
Thread Starter
New Member
How can I code an VB6 exe to be loaded once only into memory, so that when the user clicks on the exe again it goes to the already loaded exe.
Thank you
Rayed
-
Aug 14th, 2000, 09:17 AM
#2
Frenzied Member
There is a tip to see if your program is already open. Then in the load statement you can just see if it is open.
-
Aug 14th, 2000, 09:32 AM
#3
Thread Starter
New Member
Steve Can you tell me the something more about it?
-
Aug 14th, 2000, 09:38 AM
#4
Hyperactive Member
Code:
If App.PrevInstance = True Then
Unload Me
End
End If
Wade
-
Aug 14th, 2000, 09:38 AM
#5
Fanatic Member
Isn't there some method of checking for a current instance of an executable and someway referencing that object.
-
Aug 14th, 2000, 09:43 AM
#6
Hyperactive Member
What I gave you will prevent the second instance from opening. If you want to notify the user and activate the previous instance, you can use:
Code:
If App.PrevInstance = True Then
'Insert Msgbox for Notification if Needed
AppActivate ("Untitled - Notepad") 'Replace with your App's Window Title
Unload Me
End
End If
-
Aug 14th, 2000, 09:54 AM
#7
Addicted Member
Isn't there a way?
Isn't there a way to make it so that the current object does a certain action... i.e. maximize, or become on top, etc... Would you have to use sendMessage somehow to get this type of functionality?
-
Aug 14th, 2000, 10:06 AM
#8
Thread Starter
New Member
wade it works great it loads the app one time only. thanks
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
|