No editor for form in VB.net 2005

I'm working on a major project. I was about to make some large changes that I was unsure of how it would affect the program. So I made a backup of the entire project into a "TestClient" folder, and started my changes. After doing so, one of my forms now report:

======================================================
There is no editor available for [file]
Make sure the application for the file type (.vb) is installed
======================================================

All my other forms work. So, I tried on the original problem as well, and it now says the same thing. If I add the form into a brand new project, then it works fine.

Also, my database file that was in my project just randomly stopped working, after making no changes to it and working on the "Testclient" for a couple hours.

I have researched this, and tried changing the "Signing" box, but that didn't change anything. I'm using VB.Net 2005.

EDIT: To note, on the database. When I try to compile, it gives the same error message now, but ".bkp" instead of ".vb". (BKP is a random extension I'm using. It's an Acess DB)
powersourceAsked:
Who is Participating?
 
Bob LearnedConnect With a Mentor Commented:
You have to look at the .vbproj file, and notice the entry for the form.  It should be in this form:

   <Compile Include="Form1.vb">
      <SubType>Form</SubType>
    </Compile>

Bob
0
 
aimeecCommented:
I had the same problem. After looking in the .vbproj file as TheLearnedOne suggested, my Form1 line said <None Include="Form1.vb">. So I had a look around to see why mine said "None".

The Properties for the Form1 were set to:
BuildAction=None
CopyToOutputDirectory=Copy Always

I changed them to:
BuildAction=Compile
CopyToOutputDirectory=DoNot Copy

And it was all working again.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.