Adding Existing Items Question!

G

Guest

Hello,

When I add existing forms to a project how do I get the form code added and
working too? If I load the form and .vb file the code is displayed, but the
form does not recognize that the code exists. Sorry about the question, but
I am very new to vb.net and am used to just adding the form to a vb6 project
and automatically having the code added too.

Any help would be greatly appreciated!
Thanks in advance.
 
C

Chris

Mark said:
Hello,

When I add existing forms to a project how do I get the form code added and
working too? If I load the form and .vb file the code is displayed, but the
form does not recognize that the code exists. Sorry about the question, but
I am very new to vb.net and am used to just adding the form to a vb6 project
and automatically having the code added too.

Any help would be greatly appreciated!
Thanks in advance.

I don't understand what you mean "have the code added too".

"If I load the form and .vb file the code is displayed, but the form
does not recognize that the code exists."

What makes you think that the form does not recognized the code? Can
you view the designer? How made this form to begin with? It isn't a
vb6 form right?

You are going to have to explain a little more....

Chris
 
G

Guest

The form event code ... all vb code associated with the form (webform). Does
this help?

Mark
 
G

Greg Burns

Sounds a lot like you are simply double-clicking on a *.vb file. This will
display the code in your current project (if VS is already up and running),
but it will not be actually be part of the project. Intillesense won't work
on the code, etc. It really just using VS as big-dumb text editor. Can be
disconcerting.

What you really want to do is, right-click on your Project in Solution
Explorer and choose Add Exisiting Item, then browse to the desired *.vb
file.

Greg
 
C

Cor Ligthert [MVP]

Mark,

Probably will it help if you tell which version you use, especially in this
part there are many changes between version VB 2005 and the older versions.

Cor
 

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