70 likes | 224 Views
Programming basics. Integrated Development Environment (IDE) : where Visual Basic applications are created Design Window : displays the application interface Solutions Explorer window : used to switch between Design and Code view, lists all files associated with a project
E N D
Integrated Development Environment (IDE): where Visual Basic applications are created Design Window: displays the application interface Solutions Explorer window: used to switch between Design and Code view, lists all files associated with a project Toolbox: contains controls that are used to create objects on the interface
Properties window: lists the properties of a selected object that change the object’s characteristics, such as appearance, behavior, position and other attributes • Name property: gives the object a name that is seen in the code window. Use Hungarian notation, such as btn, lbl, rad, frm, etc. (ie. btnBlue, lblName) • Text property: the text that is displayed in the object • SizeMode: change to stretch to see an entire picture in a small object • AutoSize: enables the programmer to size the object if Autosize is set to False, automatically sizes if SizeMode is true
Windows form: a graphical object that contains a title bar, a system menu, and minimize, maximize and close buttons – every project contains at least one form • Objects: buttons, labels, radio buttons, pictureboxes, etc. that are added to the form
Procedure: a block of code written to perform specific tasks • Event procedure: a type of procedure that performs tasks in response to user interaction with an object • Me: a way to refer to the form in code – me.close is the code that closes a form
Assignment Statement: used in a procedure to change a value at run time • Always takes the form: • object.property = value • lblMessage.text = “hello”