where is "Add Component"?


i beginner of c#.this 1 step of c# exercise:

in exercise, create component represents doughnut making machine. class create , manage instances of doughnut class , expose collection of doughnuts. in addition, implement member events inform containing component when doughnut ready.

  • from project menu, choose add component. add new item window appears. name component doughnutmachine.cs appropriate, , click ok.
  • the component designer opens.


    i can't find "add component",and view when click project:

    so "add component"?how can add component?

there several different ways add new component, depending upon project type.  windows forms project can right-click project in solution explorer, select add -> component.  alternatively right-click project in solution explorer , select add -> new item , scan down , select component class in new items dialog.  either way puts in add new item dialog component class selected.  can enter name , click add add , open new component.  note component nothing more than a class derives component can create regular class , change base class name accomplish same thing.

michael taylor - 10/25/09
http://p3net.mvps.org


Archived Forums V  >  Visual C# IDE



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

How to fix error Msg 1801, Level 16, State 3, Line 1

How to Share webservice object to all user