128 Control (Web design) Structures: Part 1 Chapter 4 2.

128 Control Structures: Part 1 Chapter 4 2. Examine the changes in the code view. Switch to code view and examine the code. Notice that the label s Text property is now assigned the text that we entered in the Properties window (Fig. 4.20). When a property is changed in design mode, the Windows Form Designer updates the appropriate line of code in the class to reflect the new value. 3. Modifying a property value in code view. In the code view editor, locate the three lines of comments indicating the initialization for welcomeLabel and change the string assigned to this.welcomeLabel.Text from Deitel to VisualC#.NET (Fig. 4.21). Now, switch to design mode. The label now displays the updated text, and the Properties window for welcomeLabel displays the new Text value (Fig. 4.22). [Note: Property values should not be set using the techniques presented in this step. Here, we modify the property value in the IDE generated code only as a demonstration of the relationship between program code and the Windows Form Designer.] Fig. 4.20 Windows Form Designer generated code reflecting new property values. Text property Fig. 4.21 Changing a property in the code view editor.
Note: If you are looking for cheap webhost to host and run your apache application check Vision jboss web hosting services

Leave a Reply