[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 782
  • Last Modified:

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)
0
powersource
Asked:
powersource
1 Solution
 
Bob LearnedCommented:
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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now