Changes

Jump to: navigation, search
no edit summary
Access to a system running Visual Studio with C# support is a pre-requisite for this tutorial. If you do not have a copy of Visual Studio you have the option of either downloading and installing the free Visual Studio Express product or a free 90-day trial of Visual Studio Professional. During the installation process it is important to ensure that C# support is selected.
Once Visual Studio is installed and running , launch it from the Windows Start menu.
== Creating a new Visual Studio C# Project ==
== Changing Component Names ==
As components are added to the Form , Visual Studio assigns default names to each one. It is via these names that any C# code will interact with the user interface of the application. For this reason it is important to specify meaningful names which identify the component when referenced in the C# source code. It is recommended, therefore, that the default names provided by Visual Studio be replaced by more meaningful ones. This and other properties relating to components are specified through the ''Properties'' panel which is located in the bottom right hand corner of the main Visual Studio window. Begin by selecting the top TextEdit component in the Form area so that the panel displays the properties for this component. Scroll to the top of the list of properties until the ''(Name)'' value is visible and change this name from ''textBox1'' to ''welcomeText'':
Build and run the application by pressing ''F5'' and when the application runs enter your name into the second text field and press the ''Hello'' button. The hello message will subsequently appear in the top text field. Press the ''Close'' button to exit the application.
You have now build built for first GUI based C# application and are ready to begin learning the basics of the C# programming language in [[C Sharp Variables and Constants|C# Variables and Constants]].

Navigation menu