Visual Basic Programming With Mr. deVries. Programming A series of instructions that are used to...
-
Upload
garey-hawkins -
Category
Documents
-
view
216 -
download
4
Transcript of Visual Basic Programming With Mr. deVries. Programming A series of instructions that are used to...
Visual Basic Programming
With Mr. deVries
Programming
• A series of instructions that are used to solve a problem
• Programmers must be open to seeing the world through many perspectives
• “An open mind: It’s a good thing”
~Martha Stewart
Object Oriented Programming
• Deals with data in terms of objects, each object with its own features, properties, and functions
• Opposite of OOP is Procedural programming, which is more simple on a small scale, but impossible to organize on a large scale!
Starting off with VB – some basic objects
• What is a form?– A container for objects
• What is a button?– An object that you click on
• What is a label?– An object that contains text
Properties of Objects• Every object, whether a real one or an
information one, has properties about it• Some properties of a basketball: size,
colour, indoor or outdoor, bounciness.• Some properties in VB:
– Caption– Name– Visibility– Font
Properties of Objects
• These are examples of some other objects in VB:– List boxes– Menus– Graphics– Timers– Combo Boxes– Radio buttons
Properties of Objects
• The properties of objects can be set by you, and even changed by the program
• imgSweetPic.Visible = False
• This will make the picture called imgSweetPic invisible
• Use the “dot notation” to set properties:– nameOfObject . property = value
Hello World Application
• Create a program that will display your greetings to any user that uses your program– Follow instructions in Review 2, pg 3-6 to 3-7
• Read sections 3.9 to 3.16, doing reviews along the way. (Reviews 3,4,5 an 6)