473,388 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

Adding Existing Items Question!

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.
Dec 19 '05 #1
4 2144
Mark wrote:
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
Dec 19 '05 #2
The form event code ... all vb code associated with the form (webform). Does
this help?

Mark

"Chris" wrote:
Mark wrote:
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

Dec 19 '05 #3
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

"Mark" <Ma**@discussions.microsoft.com> wrote in message
news:DF**********************************@microsof t.com...
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.

Dec 19 '05 #4
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
"Mark" <Ma**@discussions.microsoft.com> schreef in bericht
news:CA**********************************@microsof t.com...
The form event code ... all vb code associated with the form (webform).
Does
this help?

Mark

"Chris" wrote:
Mark wrote:
> 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

Dec 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Kevin Little | last post by:
#!/usr/bin/env python ''' I want to dynamically add or replace bound methods in a class. I want the modifications to be immediately effective across all instances, whether created before or...
6
by: 6thirty | last post by:
Hi, I've created a stocktaking database using Access XP. This is indexed by two fields - part number and shelf location. I am currently inputting all the data via a form. When I have entered a...
4
by: Justin | last post by:
I am having trouble adding some of my existing controls to my toolbox in VS.NET. Here's what is going on: 1). I have an existing project that is a Windows Control Library with a bunch of...
20
by: Ash Phillips | last post by:
Hi Everyone, I have this program I wrote in VB6 for family use. It's a DVD Database just for me to keep track of them cause I have so many lol. In VB6, I could add items to the ListView in...
2
by: jack | last post by:
Hello, I need to dynamically add menu items to an existing menu on an MDI form. In the form load, when I create the menu items then add it to the menu control using the Add method, the entire...
47
by: Pierre Barbier de Reuille | last post by:
Please, note that I am entirely open for every points on this proposal (which I do not dare yet to call PEP). Abstract ======== This proposal suggests to add symbols into Python. Symbols...
9
by: friendhouston | last post by:
Hi, Have a requirement where new items may be added later to an existing list of items. These new items may have new features but will need to contain minimum basic features like description and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.