NOVA ITE 100 - Visual Basic: The Basics of Programming

Unformatted text preview:

Visual BasicWhat Is Visual Basics?What is Visual Basics? (cont.)Slide 4What Is Visual Basics? (cont.)Properties ToolBoxThe FormSome Objects to Know When Designing The User InterfaceObjects To Know (cont.)Slide 10Objects To Know(cont.)Things to RememberWriting Visual Basic CodeSlide 14Example Of CodePrefixes Of ObjectsMultiple FormsCheck Boxes and Radio ButtonsSlide 19List Box and a Combo BoxList and Combo BoxesThe EndVisual BasicVisual BasicThe Basics of ProgrammingThe Basics of ProgrammingBy Maya HollingerBy Maya HollingerITE100ITE100What Is Visual Basics?What Is Visual Basics?The Purpose of any programming The Purpose of any programming is to write commands to make is to write commands to make the computer do something the computer do something useful.(ex: printing a report)useful.(ex: printing a report)The Basic part of Visual Basics The Basic part of Visual Basics is to combine programming is to combine programming language with the ability to language with the ability to create user interface quickly create user interface quickly and easily.and easily.What is Visual Basics? (cont.)What is Visual Basics? (cont.)The Visual part of Visual Basics is The Visual part of Visual Basics is the ability to draw your user the ability to draw your user interfaces on the screen without interfaces on the screen without writing a command.writing a command.Interface- display information and Interface- display information and accept commands and additional data accept commands and additional data from the user.from the user.Two items used to draw the interface Two items used to draw the interface are the forms and objects.are the forms and objects.What is Visual Basics? (cont.)What is Visual Basics? (cont.)Form- the rectangle window. It is Form- the rectangle window. It is the technical term for a window.the technical term for a window.Objects- The items such as text, Objects- The items such as text, buttons, or check boxes that are buttons, or check boxes that are drawn on the form.drawn on the form.Objects are displayed in a Objects are displayed in a properties toolbox. A Property properties toolbox. A Property toolbox example includes the name or toolbox example includes the name or background colors of the highlighted background colors of the highlighted object or form.object or form.What Is Visual Basics? (cont.)What Is Visual Basics? (cont.)Programmers use Programmers use Visual Basics to Visual Basics to write programs to write programs to take polls, invent take polls, invent simple games, and simple games, and make just fun make just fun little projects , little projects , and to receive data and to receive data such as the one such as the one shown to the right.shown to the right.Properties ToolBoxProperties ToolBoxThe FormThe FormSome Objects to Know When Some Objects to Know When Designing The User InterfaceDesigning The User InterfacePicture Box- you use this to insert Picture Box- you use this to insert images into your Visual Basics images into your Visual Basics ProgramProgramBackground- you can chose different Background- you can chose different colors to jazz up your program and colors to jazz up your program and make it more comfortablemake it more comfortableName- name the form and objects that Name- name the form and objects that are highlightedare highlightedText Color- to adjust the text color Text Color- to adjust the text color of whatever object that is of whatever object that is highlighted.highlighted.Objects To Know (cont.)Objects To Know (cont.)TextBox-draws a box that can display TextBox-draws a box that can display text and lets the user type in text.text and lets the user type in text.Font- what type of font that will be Font- what type of font that will be displayed in the highlighted objectdisplayed in the highlighted objectLabel- Draws a box to display textLabel- Draws a box to display textButton-draws a rectangular-shaped Button-draws a rectangular-shaped buttonbuttonObjects To Know (cont.)Objects To Know (cont.)MainMenu- creates pull-down menusMainMenu- creates pull-down menusComboBox- draws a combo boxComboBox- draws a combo boxCheckbox- draws a check boxCheckbox- draws a check boxListBox- draws a list boxListBox- draws a list boxCheckedLixtBox- draws a list box CheckedLixtBox- draws a list box that displays check boxes next to that displays check boxes next to each itemeach itemPointer- Selects objectsPointer- Selects objectsLinkLabel-draws a box that can LinkLabel-draws a box that can display a hyperlinkdisplay a hyperlinkObjects To Know(cont.)Objects To Know(cont.)RadioButton- draws a radio RadioButton- draws a radio buttonbuttonThings to RememberThings to RememberWhen naming an object, make sure it When naming an object, make sure it has a unique name, such as cmd1 and has a unique name, such as cmd1 and cmd2.cmd2.If you name two things the same it If you name two things the same it will cause an array which makes your will cause an array which makes your program more complex.program more complex.Its your program, and feel free to Its your program, and feel free to have fun with the colors and making have fun with the colors and making your program the way you want.your program the way you want.Writing Visual Basic CodeWriting Visual Basic CodeCommand- A single instructionCommand- A single instructionExample- Taxes = Income * Example- Taxes = Income * FlatTaxRateFlatTaxRateEach part of the Command is a Each part of the Command is a separate object. The data from separate object. The data from the Income object multiplied by the Income object multiplied by the data from the FlatTaxRate the data from the FlatTaxRate will be displayed in the Taxes will be displayed in the Taxes object.object.Writing Visual Basic CodeWriting Visual Basic CodeReserved Keywords in Visual Basic Reserved Keywords in Visual Basic codes- Loop, Function, Sub, End, codes- Loop, Function, Sub, End, Do , Integer, Case, If, Else, Do , Integer, Case, If, Else, Select, Then, For.Select, Then, For.You don’t need to write any Visual You don’t need to write any Visual Basic code to design your user Basic code to design your user interface.interface.When you begin each command you must When you begin each command you must use the words Private Sub and to end use the words Private Sub and to end each command, you must use the each command, you must use the words: End


View Full Document

NOVA ITE 100 - Visual Basic: The Basics of Programming

Download Visual Basic: The Basics of Programming
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Visual Basic: The Basics of Programming and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Visual Basic: The Basics of Programming 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?