Creating Windows Forms App with C#
The obvious objective is to introduce Windows Forms by creating a small application similar to the dialog-based application created in previous tutorials (see History section below). I don’t try to teach C# or Windows Forms in their entirety, because plenty of books and websites already discuss the subject. On the other hand, I do provide plenty of extra information, such as an explanation of the code generated by Visual Studio .NET. I assume that you are not a beginner and some knowledge of programming, preferably in C++, is helpful. The only other requirement is your desire to know more than just step 1, step 2, and so on.
…
CREATING A NEW PROJECT (AND SOLUTION)
1. Start Visual Studio .NET. On the main menu, choose File | New | Project .
2. Once the New Project Dialog opens, choose Visual C# Projects in the Project Types pane choose. In the Templates pane choose Windows Application. Provide a Name and Location for the Project. If this is a brand new solution (and project), then it is good practice to check the Create Directory for Solution checkbox. If it isn’t showing, then click the More button. The dialog will expand and provide space for defining a Solution Name. The default Solution Name is the name of the first project, but it doesn’t have to be. For now just accept the default. The reason for doing this is found in the “Extra Information” section below. Alternatively, you could create and empty solution and then add a new project to it, but this is easier, because you are combining two steps into one.
3. When all the fields are filled in, click the OK button.
…
Website: home.myuw.net | Filesize: 488kb
No of Page(s): 25
Click here to download Creating Windows Forms App with C#.
Related Tutorial
Tags: GUI, Windows Forms
Comments
Leave a Reply