To start, open Visual C# Express or Visual Studio and create a new project by pressing on the “New
Project” icon in the upper left corner.
In the window that opens you can select your project type, depending on what you want to program in C#.
To make a simple Windows application, select “Windows Forms Application”, name your project
“Calculator” (because this is what we are going to do) and press “OK”.
You now created a new project. You might get all scared by Visual C#’s interface because it is very
crowded and you don’t know what most of the controls do. Let’s take a look at the interface for a bit: the
first thing that pop’s into your eyes is the form right in the middle. It is an empty form and what you have
to do is to take controls from the “Toolbox”, the panel from the left, and put them on it
You can see different type of controls in the “Toolbox”: buttons, textboxes, progress bars, and you can take
all of them and place them on your form. Don’t place anything on your form now, if you did, select them
and delete them.
On the right you have your “Solution Explorer”. When you create a new project, you automatically create a
new solution. A solution is a collection of multiple projects, let’s say we make an application called
“Calculator” (cause this is what we actually do), and “Calculator” is an application project inside the
“Calculator” solution. If we want to create a setup for “Calculator”, we create the setup project inside the
same solution. You will learn what everything in the solution explorer means later.
"News powered by"
No comments:
Post a Comment