Click here to Skip to main content
15,914,165 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 14:48
Matt U.20-May-10 14:48 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Luc Pattyn20-May-10 14:56
sitebuilderLuc Pattyn20-May-10 14:56 
GeneralRe: WinForms App Only Runs When Pressing F5 (Start Debugging) :: VS2008 & .NET 3.5 Pin
Matt U.20-May-10 14:59
Matt U.20-May-10 14:59 
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 
Yeah, I know what you mean about opening the .exe outside of VS via Explorer. That's what I was saying. I had made the mistake of opening it through the VS Open File dialog. And what I mean is that I was right-clicking the .exe in the Open File box and selecting "Open", not double-clicking to open it with VS.

Here's the code for "Program.cs" (which is set as the Startup Object in the project properties):

using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace LME
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}
}

That code has been the same since the day I first created this project.
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 
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 

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.