Window closes automatically when debugging

Hi,

I'm new to this forum and developing so if I don't adhere to a protocol, let me know!

Using the Visual C# step by step book, I created a Hello World windows application with using a Form, OK button, label and input box, and when I run Debug or Start without debugging, the window appears for a split second and then goes away.

It didn't work when I first created it, then, when I toggled some system restore points, it started working! After waking my comp from hybernation today it's back to not working. Any help is greatly appreciated.

Here are my stats:
Win XP SP2
Visual Studio 2005
.NET Framework 2.0


Answer this question

Window closes automatically when debugging

  • mjt

    Hi,

    I figured out some sort of workaround, or maybe a fix, but I changed the directory of the solutions I created to the desktop and now they work. Anyone have any idea why

    The original directory was My Documents\Microsoft Press\Visual CSharp Step by Step\Chapter (x)

    For some reason VS 2005 doesn't like the MS Press\Visual C# directory.

  • Window closes automatically when debugging