Visual Basic 2008 Programming: Business Applications with a Design Perspective
Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9
Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Appendix A Appendix B Appendix C Home
Loading
Last change: February 13 2016 18:48:19.

 Chapter in PDF

Chapter 2: Visual Basic Programming Concepts
Last change: February 13 2016 18:48:07.
<<PreviousNext>>

2.4 Exploring More Properties

In this section, you will explore some more properties of the three objects—form, label, and button. It has been mentioned that all three objects have the Text property. Recall that you changed the Text property of the button from Button1 to “Say Welcome” at design time by using the Properties window. You also have used code to change the Text property of the label from “Label1” to “Welcome to Visual Basic.” Why not try to change the form’s Text property to “My First VB Project?” You can do this either at design time using the Properties window (follow the same steps for the button), or by code (double-click the form to obtain the form load code template and place the code in that event). In general, if you do not anticipate the property setting to change when your program runs, it is easier and more efficient to set it at design time.

Last change: February 13 2016 18:48:10.
  1. Understanding the Integrated Development Environment
  2. Coding Mechanics
  3. Interfaces of VB Objects
  4. Defaults
  • 2.4 Exploring More Properties
    1. Common Properties
    2. Changing the Font for the Label: An Exercise
    3. The AutoSize Property
    4. <<PreviousNext>>