Click here to Skip to main content
15,888,072 members
Home / Discussions / C#
   

C#

 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.20-May-10 15:55
Matt U.20-May-10 15:55 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn20-May-10 16:17
sitebuilderLuc Pattyn20-May-10 16:17 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.20-May-10 16:31
Matt U.20-May-10 16:31 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 [modifed] Pin
Luc Pattyn20-May-10 16:49
sitebuilderLuc Pattyn20-May-10 16:49 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 [modifed] Pin
Matt U.20-May-10 16:58
Matt U.20-May-10 16:58 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 [modified] Pin
Luc Pattyn20-May-10 17:15
sitebuilderLuc Pattyn20-May-10 17:15 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.21-May-10 12:36
Matt U.21-May-10 12:36 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn21-May-10 13:03
sitebuilderLuc Pattyn21-May-10 13:03 
So the mystery continues.

You now have two projects that act strangely, both based on the same set of source files, but created separately, so their .sln and .csproj files aren't copies? and everything else works fine?

If you have no startup object set, your app can have only one class holding a static Main() and that, as far as your code is concerned, is where your app begins.
If you have a startup object set, it defines the class whose static Main() will be the entry point.

AFAICT you have two choices now:
- slim down your app until the problem disappears, so you might discover where it really matters; most likely that ends up in a bug report, not a solution;
- or reinstall Visual.

Some more questions to better understand your set-up:
Which VS are you running?
which .NET version are you targeting?
Which Windows version are you using?
Is UAC on (I'm not suggesting you turn it off!)
Did you do special things to run from say a networked disk?
are you using anything special in the manifest file?

Here is a short experiment for you: try again on a non-removable, local disk (maybe the system disk).

You might also try on the same machine with another VS (if only one VS is installed, you could easily add another one, say an Express version that is 2 years younger/older). The only side-effect that has it the one you install last will hijack your file associations.

And you could carry the entire project to another PC and see what gives there.

Confused | :confused:
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.21-May-10 17:14
Matt U.21-May-10 17:14 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn21-May-10 22:22
sitebuilderLuc Pattyn21-May-10 22:22 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.22-May-10 2:16
Matt U.22-May-10 2:16 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn22-May-10 2:49
sitebuilderLuc Pattyn22-May-10 2:49 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 [modified] Pin
Matt U.22-May-10 7:28
Matt U.22-May-10 7:28 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.22-May-10 14:16
Matt U.22-May-10 14:16 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn22-May-10 14:28
sitebuilderLuc Pattyn22-May-10 14:28 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.20-May-10 14:58
Matt U.20-May-10 14:58 
QuestionHelp Re: DateTime and DayofWeek - Increasing DayofWeek Value Pin
roman_s20-May-10 7:45
roman_s20-May-10 7:45 
AnswerRe: Help Re: DateTime and DayofWeek - Increasing DayofWeek Value [modified] Pin
Luc Pattyn20-May-10 8:31
sitebuilderLuc Pattyn20-May-10 8:31 
QuestionZip files Pin
DinoRondelly20-May-10 6:36
DinoRondelly20-May-10 6:36 
AnswerRe: Zip files Pin
J4amieC20-May-10 6:45
J4amieC20-May-10 6:45 
AnswerRe: Zip files Pin
The Man from U.N.C.L.E.20-May-10 6:46
The Man from U.N.C.L.E.20-May-10 6:46 
GeneralRe: Zip files Pin
DinoRondelly20-May-10 7:06
DinoRondelly20-May-10 7:06 
AnswerRe: Zip files Pin
Hristo-Bojilov20-May-10 9:59
Hristo-Bojilov20-May-10 9:59 
Question.mov file writer Pin
c242320-May-10 5:28
c242320-May-10 5:28 
AnswerRe: .mov file writer Pin
Martin Jarvis20-May-10 6:57
Martin Jarvis20-May-10 6:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.