Form2.vb[design] innaccessible !

G

Guest

I have built an application with one form only (form1). Everything went well
for weeks. I have access with Visual Studio 2005 to Form1.vb[design] (the
form) and Form1.vb (the code).

I decided to add an second form to my application (with some difficulties, i
am new) and was able to modify and maintain form2. Now, I have:

form2.vb (that seems empty (0 bytes using Windows Explorer))
form2.designer.vb (were the code is (why?))
but with no access to the form itself.

The application is cleaning, building & rebuilding & executing very well
(form2 appears, as form1, during execution). But I have lost access to my
second form under Visual Studio 2005 ! So maintenance to the form2 itself is
now impossible.

What happens ?
 
C

crazyone

I've had a problem similar when i copy/pasted a form. What might have
happened is that the project file got corrupted. Not necessarely
because you copy/pasted to create the second form but i does happen in
2005 for a reason i can't figure out.

If it's not too hard, delete your project/solution file but keep the
source code inside the original folder, create a new solution/project
and "Add existing element" one by one to your project. As i may
understand, you don't have many forms so probably you don't have many
files too, this could be a good method...

For me, i had to open with notepad the solution file and change all the
resource reference and delete the ones i didn't want, my project has
around 130 files i couldn't do it like the above :p
 
G

Guest

OK. I took a copy of my form2 coding, detached and deleted all form2 files to
rebuild from scratch the design of form2...

Very disappointing... I would like to hear from Microsoft about this.

Marcel
 
C

crazyone

Then submit a bug report after having been able to reproduce the bug,
else wait for the service pack, they probably fixed it already.

If you want to file a bug report to microsoft, you have to go to
connect.microsoft.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top