CS 27 - Visual Basic .NET Programming I


Introduction to methods and techniques of Visual Basic .NET programming. Includes coverage of user interface design, variables, decisions, menus, functions, object-oriented programming, looping, arrays, files, and graphics. Designed to bring students up to the necessary skill and knowledge level for an intermediate-level programming course.


Completion of CS 10 or equivalent experience.

Course Outcomes

I. Introduction to Visual Basic .NET
1) Describe the process of visual program design and development
2) Explain object-oriented programming
3) Compare and contrast the concepts of classes, objects, properties, methods, and events
4) List the three steps for writing a Visual Basic project
5) Identify the elements in the Visual Studio environment
6) Define design time, run time, and break time

II. User Interface Design
1) Design a user interface that has text boxes, group boxes, check boxes, radio buttons, and picture boxes
2) Manipulate multiple controls simultaneously so that they are aligned vertically and horizontally
3) Construct a project that has access keys, accept and cancel buttons, proper tab sequence, and Tool Tips
4) Explain how to concatenate strings of text
5) Describe how to make a control visible or invisible at run time

III. Variables, Constants, and Calculations
1) Distinguish between variables, constants, and controls
2) Differentiate among the various data types
3) Formulate calculations using variables and constants
4) Compare and contrast numeric data type conversion using implicit and explicit conversions
5) Summarize how to use Try/Catch blocks for error handling
6) Explain how to accumulate sums and generate counts

IV. Decisions and Conditions
1) Describe how to use If statements to control the flow of logic
2) Create flowcharts indicating the logic in a selection process
3) Evaluate conditions using the relational operators
4) Compare and contrast the AND and OR operators
5) Explain how to use one event procedure to respond to the events for multiple controls
6) Diagnose program errors using breakpoints, stepping program execution, and displaying intermediate results

V. Menus, Common Dialog Boxes, Sub Procedures, and Functions
1) Create menus and submenus for program control
2) Design a program that uses the Windows common dialog boxes
3) Write reusable code in sub procedures and functions, then call them from other locations
4) Compare and contrast sub procedures and functions
5) List the Windows common dialog boxes that relate to files, fonts, colors, and printing

VI. OOP: Creating Object-Oriented Programs
1) Define the following object-oriented terminology: encapsulation, inheritance, and polymorphism
2) Create a two-tier application that separates the user interface from the business logic
3) Differentiate between a class and an object
4) Illustrate how to declare object variables and assign values to the properties with a constructor
5) Compare and contrast shared members and instance members
6) Explain the purpose of the constructor and destructor methods

VII. Lists, Loops, and Printing
1) Create a program with list boxes and combo boxes
2) Differentiate among the available types of combo boxes
3) Describe how to add and remove items in a list at run time
4) Determine which item in a list is selected
5) Explain how to use the Items. Count property to determine the number of items in a list
6) Compare and contrast Do Loops and For/Next Loops

VIII. Arrays
1) Establish an array and refer to individual elements in the array with subscripts
2) Create a structure for multiple fields of related data
3) Distinguish between direct access and indirect access of a table
4) Write a table lookup for matching an array element
5) Analyze the advantages of using ListBox controls with arrays

IX. Saving Data and Objects in Files
1) Summarize how to store and retrieve data in files using streams
2) Describe the process for finding the end of a file
3) Compare and contrast streams and serialization
4) Determine whether a file exists and if it does not, create it
5) Explain how to use serialization to store and retrieve objects

X. Graphics in Windows
1) Create a drawing surface with a Graphics object
2) Differentiate between Pen and Brush objects for drawing
3) List graphics methods for drawing shapes, lines, and filled shapes
4) Design a program that uses the Timer component to automate animation
5) Explain how to use scroll bars to move an image


Bill Cole (classroom, online)