Changes

Jump to: navigation, search

Creating a Simple C Sharp GUI Application with Visual Studio

11 bytes removed, 15:32, 11 January 2008
Changing Component Names
== 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 properties 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'':

Navigation menu