how to add a component

  • Thread starter Thread starter Daniel
  • Start date Start date
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.
 
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
 
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?
 
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.
 
Back
Top