Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 16th, 2006, 1:45 PM   #1
Robocop
Programmer
 
Join Date: Sep 2004
Posts: 42
Rep Power: 0 Robocop is on a distinguished road
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.
Robocop is offline   Reply With Quote
Old Dec 16th, 2006, 2:22 PM   #2
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Dec 21st, 2006, 11:00 PM   #3
melbolt
Hobbyist Programmer
 
melbolt's Avatar
 
Join Date: Feb 2005
Location: PA, USA
Posts: 229
Rep Power: 4 melbolt is on a distinguished road
Send a message via AIM to melbolt Send a message via Yahoo to melbolt
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.
__________________
I have never let my schooling interfere with my education. -Mark Twain-

Xbox live gamertag: melbolt
melbolt is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic 2005 Express Edition For Dummies ReubenK Book Reviews 3 Jul 31st, 2007 8:47 AM
return 0; not working in c++ in visual studio 2005? chillypacman C++ 9 Mar 18th, 2006 12:32 AM
Visual Studio 2005 problem Klarre C++ 3 Jan 25th, 2006 3:24 PM
Moving code from Visual Studio 2005 to Visual Studio 2003 and back. Kami Other Programming Languages 1 Jan 11th, 2006 9:35 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 9:12 AM.

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