Tutorials Forums
     Tutorials Videos
        Sign Up Now For FREE

How To Use Microsoft Visual Studio 2008

How To Use Microsoft Visual Studio 2008

Get the latest code samples for Visual Studio. Here you'll find links to sample applications and code snippet

C# Tutorials ,  VB.NET Tutorials ,  WPF TutorialsWCF TutorialsWF TutorialsASP.NET TutorialsAJAX TutorialsCSS/HTML Tutorials

26
June
2010

How To Create Custom Control Step by Step(C#)
5.0/5 rating (2 votes)

This is a short and simple demonstration of .NET framework's capability of creating custom controls.

Here I'm going to make a custom control and then, test my control in a Windows application. I have implemented some custom properties for my control, so you can learn how it is done in C#.

CustomControlStepbyStep

24
June
2010

How to Add or Remove References in Visual Studio(C#,VB)
4.0/5 rating (2 votes)

In order to use a component in your application, you must first add a reference to it. Visual Studio provides five options in the Add Reference dialog box:

  • .NET lists all .NET Framework components available for referencing.

  • COM lists all COM components available for referencing.

  • Projects lists all reusable components created from local projects.

  • Browse enables you to browse for a component in the file system.

  • Recent contains a list of components recently added to projects on your computer.

The number of tabs available at the top of the Add Reference dialog box can vary, depending on the type of project open and the resources it is using. C++ native projects contain only aProjects tab.

Some components in the list may not be shown, depending on the .NET Framework version of your project. This can occur under the following conditions:

  • A component that uses a recent version of the .NET Framework is incompatible with a project that targets an earlier version of the .NET Framework.

    For information about how to change the target .NET Framework version for a project.

  • A component that uses .NET Framework 4 is incompatible with a project that targets the .NET Framework 4 Client Profile.

    When you create a new application, some projects target the .NET Framework 4 Client Profile by default. For more information.

You cannot add references from the global assembly cache because it is strictly part of the run-time environment.

vsAddOrRemoveReference

17
June
2010

How to Create GUID (guidgen.exe)
4.0/5 rating (2 votes)

Generates a GUID in a specified format.

When you start guidgen.exe, or when you click the New GUID button in the Create GUID dialog box, guidgen.exe generates a GUID.

NoteNote

The appearance of features in the IDE can depend on your active settings or edition, and might differ from those described in Help. To change your settings, chooseImport and Export Settings on the Tools menu.

To run guidgen.exe from the IDE

  1. On the Tools menu, click Create GUID. The Create GUID tool appears with a GUID in the Result box.

  2. Select the format you want for the GUID.

  3. Click Copy.

    The GUID is copied to the Clipboard so that you can paste it into your source code.

  4. If you want to generate another GUID, click New GUID.

17
June
2010

How to Create a Team Project
5.0/5 rating (2 votes)

If your user account has the Create new projects permission, you can create a new team project by using the New Team Project wizard. The New Team Project wizard displays multiple pages for specifying settings for the new team project. The process template you choose when you run the wizard determines which pages are displayed. The following procedure uses the MSF for Agile Software Development process. You might see different pages if you select a different process.

Contact your Team Foundation Server administrator or your team project administrator to make sure that your user account has the permissions described in the following section.

Required Permissions

To perform this procedure, you must be a member of the Team Foundation Administrators security group. If the necessary security permissions are set explicitly, you must have the View server-level information and the Create new projects permissions set to Allow. For more information, see Team Foundation Server Permissions.

To create a new team project

  1. On the File menu, click New Team Project.

    The New Team Project wizard appears.

    NoteNote

    If you are not using the Project Management environment settings, then on the File menu, point to New, and then click Team Project.

    Note

    If you have not connected to a Team Foundation Server, you will be prompted to connect to one now. For more information, see How to: Connect to Team Foundation Server

  2. Under What is the name of the team project? on the Specify the Team Project Settings page, type a name for the team project that team members can easily associate with the software product. This name is what all team members will use to connect to the team project.

17
June
2010

How to Connect to Team Foundation Server
4.0/5 rating (2 votes)

All team projects are stored and managed on a Team Foundation Server. To start working on a team project, you must first connect to the appropriate Team Foundation Server. Contact your Team Foundation Server administrator or your team project administrator to make sure that your user account has the permissions described in the following section.

NoteNote

If you installed Team Edition for Developers, Team Edition for Architects, or Team Edition for Testers, you must also install Team Explorer before you can connect to Team Foundation Server. For more information, see the Team Foundation Installation Guide.

Required Permissions

To connect to a Team Foundation Server you must be a member of the Team Foundation Valid Userssecurity group. If the necessary security permissions are set explicitly, you must have the View server-level information permission set to Allow.

For more information, see Team Foundation Server Permissions.

To connect to a Team Foundation Server

  1. On the Tools menu, click Connect to Team Foundation Server.

  2. In the Connect to Team Foundation Server dialog box, select a Team Foundation Server from the drop-down list.

    Note

    If the drop-down list is empty, click the Servers button to manually enter the Team Foundation settings. Contact your Team Foundation Server administrator or team project administrator for the correct Team Foundation Server connection settings.

  3. Under Team projects, select one or more team projects from the list. Team projects with a check mark next to them will display in Team Explorer.

  4. Click OK.

    Team Explorer displays the team projects under the selected Team Foundation Server.

    Source