Click here to Skip to main content
15,888,315 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:13
Matt U.20-May-10 15:13 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn20-May-10 15:25
sitebuilderLuc Pattyn20-May-10 15:25 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.20-May-10 15:29
Matt U.20-May-10 15:29 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn20-May-10 15:44
sitebuilderLuc Pattyn20-May-10 15:44 
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 
So let me summarize what we have here.

A WinForms app, in C#, has a static Main() with nothing special inside, calling a MainForm instance from within the same EXE (residing on a local disk, no DLL involved, no GAC involved), in the same namespace; the MainForm constructor starts with a MessageBox.Show() and under some circumstances this succeeds, while failing under others. The difference being only how the app is run (under Studio with debug, under Studio without debug, and straight from Explorer); removing bin and obj folders, and rebuilding, does not cure. Rebooting PC does not cure.

IMO, if all the above is accurate, the only possible conclusion is: something is ill outside your app; either your PC has problems, or your Visual Studio installation does.

[MODIFIED]
You may want to try:
- building and running your project on the same PC, but with another instance of VS (assuming you have an older or more recent one installed as well);
- building and running your project on another PC.
- building and running a very simple different project on the same PC with the same Visual.

Depending on the outcome, then maybe remove and reinstall Visual.
[/MODIFIED]

Smile | :)
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 [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 
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 

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.