So here's my dilema, I am a C# rookie and was following an example in the MSDN site when I come across one of the instructions that cannot be completed;

"To add the component

1. In Solution Explorer, right-click the project name.
2. On the shortcut menu, click Add, and then click Add Component.

The Add New Item dialog box appears and the Component Class in the right pane will be selected by default. "

In my new item dialog there is no Component Class to be found.

Any ideas or work-arounds out there?

Thank you.

If you are in the new item dialog you have gone too far. The 'Component...' option is in the add menu second from bottom.

I am using VS 2008

If you are in the new item dialog you have gone too far. The 'Component...' option is in the add menu second from bottom.

I am using VS 2008

I am also using 2008 on a 90 day trial as we get out license straightened out. I also went to the Component link that you mention but it brings up the New Item dialog and it does not contain the Component Class in it. Any ideas?

As I mentioned I am a rookie but maybe all of my namespaces or class did not get installed when I setup VS2008? Does that make sense?

Thank you.

Perhaps a link to said example could help?

Over here, when I right click my Project name (below the Solution), I can navigate to a menu called "Add", in there is a "Component..." option.

And when selected, there is a possibility to select a Component Class...

Perhaps a link to said example could help?

Over here, when I right click my Project name (below the Solution), I can navigate to a menu called "Add", in there is a "Component..." option.

And when selected, there is a possibility to select a Component Class...

Got to tell you I love the handle!!

Here is the link to the walkthrough I am following;

http://msdn.microsoft.com/en-us/library/aa302124%28VS.71%29.aspx

Attached is screen shot of what i see when I click on that component link in the shortcut menu.

Here is a link to a screen shot showing the absence of the component class;

http://web.business.queensu.ca/staff/troy/screen_shot.png

Hope this helps.

Got to tell you I love the handle!!

Here is the link to the walkthrough I am following;

http://msdn.microsoft.com/en-us/library/aa302124%28VS.71%29.aspx

Attached is screen shot of what i see when I click on that component link in the shortcut menu.

Here is a link to a screen shot showing the absence of the component class;

http://web.business.queensu.ca/staff/troy/screen_shot.png

Hope this helps.

Hehe :), it's from Fear and loathing in Las Vegas.

Ah, I see. You're developing an ASP.NET webpage, I was looking in a solution of a standalone C# application (the Add menu's contents is different then).

I've made aspx sites before, but never ran into this problem, so I turned to Google, and searched for 'aspx use component class', and it suggested this: http://bytes.com/topic/c-sharp/answers/234392-use-c-component-class-aspx

So if this guy is correct, it's indeed just the namespace that you need.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.