Introduction to Visual Basic

Introduction to Visual Basic

College of DuPage

$119.00 Enroll Now!

Instructor-Led Course
Hours: 24
Duration of Access: 6 weeks
Start Dates: Oct 12, Nov 09, Dec 14, Jan 18
3,416 Students
have taken this course.

Syllabus

A new session of each course opens each month, allowing you to enroll whenever your busy schedule permits!

How does it work? Once a session starts, two lessons will be released each week, for the six-week duration of your course. You will have access to all previously released lessons until the course ends.

Keep in mind that the interactive discussion area for each lesson automatically closes 2 weeks after each lesson is released, so you’re encouraged to complete each lesson within two weeks of its release.

The Final Exam will be released on the same day as the last lesson. Once the Final Exam has been released, you will have 2 weeks plus 10 days to complete the Final and finish any remaining lessons in your course. No further extensions can be provided beyond these 10 days.

Week 1

Lesson 01 - Getting Started Using Visual Basic

Wednesday

What's the best way to learn Visual Basic programming? Well, you have to write programs, of course! And your first step toward writing your first program is to install Visual Studio. So in our opening lesson, you'll learn how to install Visual Studio on your computer. After that, we'll walk through creating your first Windows application program while we discuss how a Windows application works.

Lesson 02 - Properties

Friday

In the first lesson, you were able to create a working Windows application with just a few mouse clicks. In today's lesson, you'll find out what Visual Basic did behind the scenes to help you create that application. You'll also learn about properties, which are characteristics of an object—such as its size and color—and how to change those properties.

Week 2

Lesson 03 - Event Procedures

Wednesday

Windows applications are all about events, such as the event a user causes just by clicking a button in the application. Today you'll first learn about event procedures. Then you'll get your feet wet in Visual Basic by writing your first code.

Lesson 04 - Controls

Friday

So far, we've been focusing on the form, which is perhaps the most important part of a Windows application's graphical user interface (or GUI). However, a form's primary role is to host other controls that enrich the GUI of Windows applications—menus, toolbars, buttons, text boxes, and list boxes. In this lesson, you'll find out how to add controls to your form and how to write code for these controls.

Week 3

Lesson 05 - Data Types and Variables

Wednesday

Most computer programs store information, or data. Today you'll learn all about data types, which represent different varieties of data (such as numeric data or text data). Then we'll go over how to store that information in a variable.

Lesson 06 - Assignment and Arithmetic Operators

Friday

As a former professional chess player, I've marveled at the ability of some computers to play world champion chess players on even terms. But once you understand that computers can calculate far more quickly and accurately than people can, it's easy to see how they're able to outplay the best players. In this lesson, you'll discover how to harness the computer's calculating ability using arithmetic operators.

Week 4

Lesson 07 - Relational and Logical Operators

Wednesday

As your programs become more sophisticated, they'll often branch in two or more directions based on whether a condition is true or false. For example, a calculator first needs to determine whether the user chose addition, subtraction, multiplication, or division before performing the indicated arithmetic. Today you'll see how to use comparison and logical operators to determine a user's choice.

Lesson 08 - Control Structures

Friday

Picking up where Lesson 7 left off, once you know the user's choice, you'll want to execute different code based on that choice. In this lesson, you'll learn how to use If and Select Case statements to execute alternative code statements.

Week 5

Lesson 09 - Loops and Arrays

Wednesday

When you were a child, your parents may have told you not to repeat yourself. But sometimes your code needs to repeat itself. For example, if your application's users enter invalid data, your code may continue to ask whether they want to retry or quit until they either enter valid data or quit. Today we'll explore how to use loops, which repeat code execution until a condition is no longer true. Then we'll delve into arrays, which may hold multiple values at one time and work very well with loops.

Lesson 10 - Subroutines and Functions

Friday

Many textbooks are several hundred pages long. Imagine how much harder a textbook would be to understand if it consisted of only one very long chapter, rather than being divided into manageable sections. Thankfully, chapters organize books into manageable chunks of information. In today's lesson, you'll learn how to similarly divide up your code into separate procedures. We'll explore two types of procedures—subroutines and functions—that help you organize your code.

Week 6

Lesson 11 - File Access

Wednesday

When I finish writing something for the evening, I close my word-processing program, and I might even shut down my computer. Of course, the next evening I don't have to start over. What I wrote the previous evening is preserved. However, up until now, our programs haven't saved data so that it's available even after the application exits. Today we'll discuss how to write code that reads from and writes to a text file in order to preserve the data. You'll also learn how to add Open and Save dialog boxes, such as those used in sophisticated programs like Microsoft Word, so you can open a text file to read from it and save to a text file to write to it.

Lesson 12 - Handling Exceptions

Friday

Nobody's perfect, right? Well, your applications won't always run perfectly either. Sometimes they'll stop due to a runtime error, also called an exception. In our final lesson, you'll find out how to prevent and handle exceptions.