![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Programmer
Join Date: Sep 2004
Posts: 47
Rep Power: 0
![]() |
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. |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
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 |
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |