|
How to create new Visual C# 2010 project, type
Windows
application.
Run
Microsoft Visual Studio 2010 Professional. On the
File menu , click New, and then click Project
.... The New Project dialog box appears.
 |
|
|
- In the installed
Templates pane, select the Visual C#
- and then Select
Windows Forms Application icon.
A message appears: Type: Visual C#
A project for creating an application with a Windows Forms user
interface.
- In
the Name box, type
work_VCNet10 .
- In
the Location box, type
C:\
- Click
OK.
The
Windows Application create all necessary files and opens
the Microsoft Visual C# 2010 project -
work_VCNet10. |
|
|
On the View menu, click
Solution Explorer, dialog box appears
...
Solution Explorer - work_VCNet10 provides you with an organized view
of your projects and their files as well as
ready access to the commands that pertain to
them . |
 |
On the View menu, click Class
view, dialog box appears
... Class View -work_VCNet10, displays
a programmatic view of symbols in your
code. |
 |
Windows Forms Designer -
allows you to add controls to a form, arrange
them, and write code for their
events. | |
1. |
Form1.cs file |
|
using
System;
using
System.Collections.Generic;
using
System.ComponentModel;
using
System.Data;
using
System.Drawing;
using
System.Linq;
using
System.Text;
using
System.Windows.Forms;
namespace
work_VCNet10
{
public
partial
class
Form1 :
Form
{
public
Form1()
{
InitializeComponent();
}
private
void Form1_Load(object
sender,
EventArgs
e)
{
}
}
}
| | | |
|