how to add a component

D

Daniel

In that same walkthrough, at the part that says: To add public variables to
the Calculator component. Where do I add the lines of code? I mean, within
which set of curly braces, or do I add the code outside of it. The
explanation was not clear.
 
D

Daniel

What version of VS are you using? In both VS2005 and VS2008, there is an
"Add Component..." menu item in the "Project" menu. The Express versions

I'm using VS 2008. I don't mean to be argumentative, but I don't see the
"Add Component" menu item. I wonder if I missed something in a previous
step. Do I have to have something selected while I look in the Project
Menu? It refers to the Project Menu at the top of the IDE, not the context
menu right?

Daniel
 
D

Daniel

Perhaps I should show the resulting file. This is the file that is
generated when I add a class of type Component Class to the project. I
already added the lines of code the walkthrough told me to. They all begin
with public... I get errors when I do a build. Does this at least look
like I added a component like I was told to?
 
D

Daniel

I figured out the problem. I created a C++ Windows Forms Application
project instead of a C# Windows Forms Application. Thanks for your help
nontheless.
 

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