Export (0) Print
Expand All

Using Visual C# Add New Item Templates

Visual Studio .NET 2003

You can easily add items that are common to Visual C# projects using the Add New Item command. When you use the Add New Item command, the Add New Item dialog box appears with a list of item templates, which add the appropriate files to your project.

Note   The list of item templates that appear in the Add New Item dialog box vary, depending on the type of project you are working with.

The following table shows an alphabetical list of Visual C# Add New Item templates.

Templates Description
Add User Control Adds a class for creating a Windows Form control using the visual designer.
Application Configuration File Adds a .config file that you can use to configure your application settings.
Assembly Resource File Adds a .NET resource file.
Bitmap File Adds a Win32 bitmap file.
Class Adds an empty class declaration.
Code File Adds a blank .cs code file.
Component Class Adds a class for creating components using the visual designer.
Crystal Report Adds a Crystal Report file that publishes data to a Windows Form or Web Form.

This template is not a Standard Edition feature.

Cursor File Adds a Win32 cursor file.
Custom Control Adds a class for creating a user-drawn Windows Form control.
Data Form Wizard Adds a .cs file for creating an XML schema with DataSet classes.
Data Set Adds an .xsd file for creating an XML schema with DataSet classes.
Frame Set Adds an HTML file that hosts multiple HTML pages.
Global Applications Class Adds a class for handling Web Application events.
HTML Page Adds an HTML page that can include client-side code.
Icon File Adds a Win32 icon file.
Inherited Form Adds a new form based on an existing Windows Form.
Inherited User Control Adds a new control based on an existing Windows Form control.
Installer Class Adds a class to be invoked at set-up time.
JScript File Adds a script file containing JScript code.
Mobile Web Form Adds a Web form for use in applications that target mobile devices.
Mobile Web User Control Adds a Web user control for use in applications that target mobile devices.
Static Discovery File Adds a file used to publish information about a Web Service.
Style Sheet Adds a cascading style sheet used for rich HTML style definitions.
Text File Adds a blank text file.
User Control Adds a class for creating a Windows Form control using the visual designer.
VBScript File Adds a script file that contains VBScript code.
Web Configuration File Adds a .config file you can use to configure your Web application settings.
Web Custom Control Adds a class for creating an ASP.NET server control.
Web Form Adds a form for Web applications.
Web Service Adds a class for creating Web Services to use from other applications.
Web User Control Adds an ASP.NET server control created using the visual designer.
Windows Form Adds a form for Windows applications to your project.
Windows Service Adds a class for creating Windows services.
Windows Script Host Adds a .WSF file that contains script that is run as a Windows program.
XML File Adds a blank .xml file.
XML Schema Adds a file for creating a schema for XML documents.
XSLT File Adds a file used to transform XML documents.

See Also

Visual C# Code Wizards

Show:
© 2015 Microsoft