Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   Visual Basic .NET (http://www.programmingforums.org/forum19.html)
-   -   VB 2005 help (http://www.programmingforums.org/showthread.php?t=12193)

Robocop Dec 16th, 2006 2:45 PM

VB 2005 help
 
I was playing with VB.NET 2005, and found out that after I have already an application running, you can click on the executable, and another instance of the program will open, and this never ends... I don't have any idea on how to stop this from happening... can you guys please help me out on this?

Also I can't find how to set the startup object to be sub main() in VB 2005.

DaWei Dec 16th, 2006 3:22 PM

Don't click on it. (Or close the other instance.) It's a multiple process system, that's how it works. You CAN force Windows to restrict itself to one instance.

melbolt Dec 22nd, 2006 12:00 AM

yea, not really sure why you'd want to do that anyways.

when you say sub main, i believe you mean your main form or rather the class? if you just have a sub named "main()" that you want to launch on startup you'll have to put it in your new() or rather the constructor or in your form load event handler sub.

as for the startup, its all under the project's properties(maybe the solution's, can't remember atm). anyways, right click on it and go to properties and hunt around in there and you will find what you're looking for.


All times are GMT -5. The time now is 1:22 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC