Can't get design view for form?

B

Brett

I have a form with a Form1_Load() Subprocedure and no other code. For some
reason, the design view does not come up. If I add a new form, the design
view does come up. The form does appear when I execute the EXE. The design
view for this form use to come up but I'm not sure when it stopped
appearing.

I do notice the form1.vb and class1.vb files in the Solution Explorer
(Visual Studio.NET) have little arrows in the bottom left corner of their
icons. What are these?

Previously, I did move the vb files to another folder and then the project
file. Could this have affected the form? Any other suggestions?

Thanks,
Brett
 
B

Bradley1234

Yes, if you now click on the design view and it shows a big red X? Then you
moved some code to a place it doesnt like.

A nice improvement would be if the fantastic .net IDE would complain in the
code view about this.

Ive found this happens when I simply add another namespace and reference
existing code, design view says NO.

One of the habits Ive found works great is to do a daily freeze of the
project, sometimes a couple of times per day, where you save the entire
solution in some name with that days date, then continue on with the
original name. So you can always back up without losing more than about 1
days work.

I cant recall exactly what makes design view get upset, but yes, moving
files and folders will cause this. See if you can back up to where it was
 
P

PAPutzback

Did you try rebuilding the project. I run into this problem
occasionally. Or try the toolbar-view-designer button.
 
B

Brett

The periodic saving with dates is a good idea. Since this is a new project
is just added a new form and deleted the old.

Brett
 
P

PAPutzback

Brett said:
Yes - but that didn't do anything.
Did you lose the code from this
#Region " Windows Form Designer generated code "

All the code needed to create the form should be in there. If you run
the project does the form show?
 
C

Chris, Master of All Things Insignificant

post your code for the form?

Try remming out the code inside the intializecomponents (sp?) function.
Then bring back a section at a time. That should narrow it down to what
part of your code that is causing the issue.

Chris
 
B

Brett

PAPutzback said:
Did you lose the code from this
#Region " Windows Form Designer generated code "

All the code needed to create the form should be in there. If you run the
project does the form show?

Yes - the form shows. I only had a small bit of code. I just copied it
from the old form into the new one. There weren't any design features so
nothing to worry about there. This probably wouldn't work with a more
complicated form.
 
B

Brett

Ok, Thanks. I've already deleted the form and added a new. Will try your
suggestion next time.

Brett
 

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