Now these days .NET is a most powerful and easy, to develop windows applications. This is blog helps you to develop .NET applications for basic .NET application developers. Here., these postings are truly working and sources codes of the applications also available. we think these are helps to you to learn yourself about .NET and develop your own applications. let's try...

To create and run a console application

To create and run a console application

  1. Start Visual Studio.
  2. On the menu bar, choose FileNewProject.
    The New Project dialog box opens.
  3. Expand Installed, expand Templates, expand Visual C#, and then choose Console Application.
  4. In the Name box, specify a name for your project, and then choose the OK button.
    The new project appears in Solution Explorer.
  5. If Program.cs isn't open in the Code Editor, open the shortcut menu for Program.cs in Solution Explorer, and then choose View Code.
  6. Replace the contents of Program.cs with the following code.
// A Hello World! program in C#. 
using System;
namespace HelloWorld
{
    class Hello 
    {
        static void Main() 
        {
            Console.WriteLine("Hello World!");

            // Keep the console window open in debug mode.
            Console.WriteLine("Press any key to exit.");
            Console.ReadKey();
        }
    }
}

No comments:

Post a Comment