Troy Campbell

Troy Campbell

  • NA
  • 3
  • 2.2k

Project Broken - Blank Form

Oct 9 2007 10:53 PM

Hello everyone,

I am new here, but I am hoping someone can point me in the right direction.

I have been working on a project for a few days now and was having some success, but something has gone wrong. Now, when I begin to debug the project, my form does not load. Instead, I get small, blank form window.

I am not sure what happened to cause this, but I have a guess. I was trying to add a Double Click event to a project but accidentally added a Click event. I removed the click event from my MainForm.cs file and tried to build the project. At this point, I got an exception that pointed me to some other file (Assembly.cs?) that contained a reference to the Double Click event that I thought I had deleted. I simply highlighted and removed the line, saved the project, and then ran a build. All seemed well, but then I tried to debug. This is when i first noticed the blank form.

Since this occurred, I have completely restarted the project twice. First, I build the GUI, and all seems to work fine. Then, I copy and paste the code from my original MainForm.cs and class files, which somehow breaks the project again.

Does anyone have any thoughts as to what might be happening here?


Answers (2)