Learn your way! Get started

Visual Basic .NET 2003 Part 1

with experts Andy Baron, Ken Getz, Mary Chipman


Course at a glance

Included in these subscriptions:

  • Dev & IT Pro Video
  • Dev & IT Pro Power Pack

Release date 8/26/2003
Level Intermediate
Runtime 13h 0m
Closed captioning N/A
Transcript N/A
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams N/A
Platform Internet Explorer Only


Enterprise Solutions

Need reporting, custom learning tracks, or SCORM? Learn More



Course description

In the first part of this course you will learn how to use Visual Studio .NET and Visual Basic .NET to build applications to run on the .NET platform. You will become familiar with the new Visual Basic .NET programming syntax including new object-oriented enhancements like inheritance. This course teaches you how to create Windows Forms and trap Windows Forms Events. You will learn how to access data using the new objects in ADO.NET including the DataReader, DataAdapter, and DataSet. Learn to build solid applications using the new Try/Catch block and Exception Object for efficient error trapping and Event logging and Breakpoints for effective debugging. Tap into the Internet by building Web-based application and XML Web Services including understanding the SOAP toolkit, UDDI, and how to build Web Services consumers. Learn how to leverage the security features in the .NET framework and build powerful reports using Crystal Reports.

Meet the experts

Andy Baron is a nationally recognized industry expert specializing in Visual Basic, Visual C#, ASP.NET, ADO.NET, SQL Server, and SQL Server Business Intelligence. He is an experienced consultant, author, and editor for several industry publications and speaker at industry conferences. Andy has also been repeatedly selected as a Microsoft MVP for his contributions to Microsoft's online support.

Ken Getz is a featured instructor for several of our Visual Studio courses. He is a Visual Basic and Visual C# expert and has been recognized multiple times as a Microsoft MVP. Ken is a seasoned instructor, successful consultant, and the author or co-author of several best-selling books. He is a frequent speaker at technical conferences like Tech-Ed, VSLive, and DevConnections and he has written for several of the industry's most-respected publications including Visual Studio Magazine, CoDe Magazine, and MSDN Magazine.

Mary Chipman is a programmer-writer for the Data Access Technologies team at Microsoft. Previously, she was a senior consultant and was repeatedly recognized as a Microsoft MVP. Mary is the co-author of the "Microsoft Access Developer's Guide to SQL Server" (Sams) and has written additional books and articles for technical journals. She has been a frequent speaker at industry conferences and is an experienced trainer and courseware author.

Course outline



Module 1

Introduction (20:07)
  • Overview (01:56)
  • Create New Project (03:03)
  • Workspace Layout (00:44)
  • Solution Explorer (02:29)
  • Properties Window (03:15)
  • Size Properties / Handles (03:28)
  • Run / Compile (01:38)
  • Form Properties (02:40)
  • Summary (00:50)
Form Controls (10:50)
  • Add Controls (00:31)
  • Size / Position (04:46)
  • Multiple Controls (02:25)
  • Format Toolbar (02:36)
  • Summary (00:30)
Behind the Scenes (19:07)
  • View Code (01:08)
  • Regions (02:41)
  • Form Classes (03:10)
  • Dispose Method (01:35)
  • Variables (03:15)
  • Attributes (03:10)
  • Comments (00:59)
  • Set Properties (02:05)
  • Summary (01:01)
Event Handling Code (09:13)
  • Control Properties (01:02)
  • Create Handles (04:06)
  • Add Event Code (02:30)
  • Event Handlers (00:57)
  • Summary (00:37)
Form Menu (16:54)
  • Add Menus (00:40)
  • Menu Properties (04:17)
  • Add Menu Code (02:49)
  • Change Controls (01:58)
  • Modify Form Behavior (02:23)
  • Keyboard Shortcuts (04:13)
  • Summary (00:32)
Form Components (17:54)
  • Add Components (01:06)
  • Tool Tips (02:05)
  • Use Tool Tips (02:24)
  • Timer (02:14)
  • Form Opacity (03:46)
  • Closing Event (04:44)
  • Summary (01:34)
Create Console Application (06:20)
  • Key Terms (00:28)
  • vbc.exe (02:57)
  • Create with Notepad (01:42)
  • Use vbc.exe (00:47)
  • Summary (00:24)
Visual Studio .NET (11:09)
  • Profiles / Options (00:37)
  • View (04:01)
  • Solution Properties (01:54)
  • Implicit vs. Explicit (02:46)
  • Modules / Classes (01:10)
  • Summary (00:38)

Module 2

Variable and Data Types (17:35)
  • Declare Variables (00:28)
  • Outside of Procedures (04:14)
  • Static Variables (01:35)
  • Block Variables (01:26)
  • .NET Data Types (03:15)
  • Convert Data Types (02:49)
  • View Variable Properties (00:43)
  • Use CType Conversion (02:32)
  • Summary (00:30)
Operators (07:00)
  • Overview (00:24)
  • AndAlso / OrElse (04:22)
  • Use Operators (01:59)
  • Summary (00:14)
Working with Code (20:01)
  • Functions (00:23)
  • Declare Function (03:02)
  • Sub Procedure (01:08)
  • Parameters (02:22)
  • For Loop (03:12)
  • Do Loop (03:08)
  • If Statements (02:14)
  • Select Case (04:11)
  • Summary (00:18)
Enumeration and Structures (08:41)
  • Enumeration (00:29)
  • Constants w/Enumeration (04:20)
  • Structures (01:14)
  • Enumeration w/Structure (02:10)
  • Summary (00:26)
VB.NET Event Handling (12:53)
  • Delegates (00:52)
  • Event Handler (02:59)
  • Multiple Controls (02:36)
  • Multiple Handlers (02:44)
  • AddHandler (03:08)
  • Summary (00:32)
Form And Control Events (23:10)
  • Inheritance Chain (00:25)
  • Form Events (04:32)
  • Mouse Events (01:55)
  • Keyboard Events (03:08)
  • KeyUp / KeyDown (03:46)
  • Disable Keys (01:17)
  • Control Events (04:01)
  • Validate Events (03:33)
  • Summary (00:28)

Module 3

Classes and Objects (13:17)
  • Class Usage (01:46)
  • CLR Types (04:30)
  • Object Creation (01:26)
  • Advantages (04:47)
  • Summary (00:45)
Class Library (09:22)
  • Overview (01:04)
  • Properties (02:58)
  • View Library Object (02:12)
  • Set Reference (02:05)
  • Summary (01:02)
Constructors (13:23)
  • Overview (00:58)
  • Imports Statement (03:25)
  • Call Constructor (02:39)
  • Naming Conventions (02:22)
  • Overload (03:16)
  • Summary (00:40)
Properties (21:02)
  • Overview (01:42)
  • Fields vs. Properties (03:12)
  • Public Properties (01:27)
  • Use Private Field (01:02)
  • Advantages (02:02)
  • Validate (06:38)
  • Calculated (02:29)
  • Summary (02:27)
Methods (21:30)
  • Overview (01:14)
  • Create Method (04:24)
  • Call Method (02:17)
  • Create Events (04:32)
  • Raise Event (02:02)
  • Declare Var w/Events (01:54)
  • Handle Events (02:09)
  • Dispose (02:22)
  • Summary (00:33)
Tab Controls and Context Menu (17:59)
  • Tab Control (00:38)
  • TabAlignment (05:02)
  • TabAppearance (03:33)
  • Context Menu (01:40)
  • Context Menu Code (02:49)
  • TabPages Order (03:07)
  • Summary (01:08)

Module 4

Range Selection Controls (14:41)
  • TrackBar Control (01:05)
  • TrackBar Properties (04:17)
  • Shortcut Keys (00:59)
  • NumericUpDown (03:30)
  • DomainUpDown (02:47)
  • Properties (00:58)
  • Summary (01:01)
Range Selection Code (17:12)
  • TrackBar Events (00:39)
  • Scroll Event (03:25)
  • ValueChanged Event (01:33)
  • Context Menus (01:43)
  • RadioCheck Procedure (03:27)
  • Change Properties (03:57)
  • Using Enum.Parse (01:38)
  • Summary (00:47)
Option Controls (16:34)
  • GroupBox Control (00:50)
  • CheckBox (02:43)
  • ControlBox Options (02:42)
  • TopMost (02:53)
  • CheckBox Location (01:15)
  • Labels / Images (01:59)
  • RadioButton (00:55)
  • WindowState Property (02:00)
  • Summary (01:14)
LinkLabel and List Controls (16:43)
  • LinkLabel (00:47)
  • LinkLabel Procedure (04:53)
  • ListBox (02:24)
  • ComboBox (01:42)
  • Fill ListBox (01:36)
  • Cast ListBox Items (01:19)
  • Anchoring (01:44)
  • Add Controls Dynamically (01:24)
  • Summary (00:49)
Anchoring and CheckedListBox (20:51)
  • Anchoring Properties (00:19)
  • AutoScroll (03:38)
  • ListBox Options (03:18)
  • Select Event (03:57)
  • Toggling Visibility (00:48)
  • CheckedListBox (06:56)
  • CheckOnClick Property (01:26)
  • Summary (00:25)
Docking and Splitter Controls (12:19)
  • Docking Concepts (01:05)
  • Splitter Control (03:53)
  • Build Split Object (03:51)
  • TextBox (01:01)
  • Set Border Style (01:27)
  • Summary (00:59)
Dialog Control and Tab Order (06:11)
  • Dialog Controls (00:40)
  • Create Icon Object (02:52)
  • Create Color / Font Object (00:24)
  • Tab Order (01:28)
  • Summary (00:44)

Module 5

String Class (19:15)
  • Overview (00:36)
  • String Constructors (09:30)
  • Static / Shared Method (03:02)
  • Compareordinal (01:15)
  • Concat / Format / Join (04:45)
  • No Summary (00:05)
Manipulating Strings (10:33)
  • Instance Methods (00:28)
  • String-returning Methods (05:30)
  • StringBuilder Class (02:22)
  • ToString Method (01:24)
  • Summary (00:48)
Dates and Times (16:46)
  • Overview (00:35)
  • DateTime Constructors (02:53)
  • Shared Methods (03:07)
  • DateTime Properties (01:04)
  • Conversion Methods (03:00)
  • Calculation Methods (01:21)
  • DateTime Methods (00:41)
  • Using DateTime Type (03:24)
  • Summary (00:37)
TimeSpan Type (10:03)
  • Elapsed Time (00:45)
  • Create TimeSpan Values (02:51)
  • TimeSpan Properties (01:09)
  • Create a TimeSpan (01:00)
  • TimeSpan Fields / Methods (02:00)
  • Parse TimeSpan (01:29)
  • Summary (00:45)
Exception Handling (13:46)
  • .NET Error Handling (00:59)
  • No Error Handling (04:04)
  • Simple Try / Catch Block (03:30)
  • Unhandled Error (01:08)
  • Exception Object (02:45)
  • Summary (01:16)
Catching Specific Exceptions (10:10)
  • Overview (01:02)
  • Multiple Exceptions (04:45)
  • Exception Order (01:37)
  • Exception Hierarchy (01:34)
  • Summary (01:10)
Throw and Finally (11:25)
  • Throw Keyword (00:51)
  • Exception Handling Options (02:35)
  • Passing Error Information (01:53)
  • InnerException (02:22)
  • Run Code Unconditionally (01:19)
  • Use Finally Block (01:42)
  • Summary (00:40)

Module 6

Debugging Environment (20:23)
  • Configure (00:30)
  • Configuration Properties (03:03)
  • Debug Setup / Use (02:24)
  • Debug Window (03:06)
  • Watch Expressions (02:17)
  • Conditional Breakpoint (03:03)
  • Multiple Languages (03:49)
  • Debug Stored Procedure (01:30)
  • Summary (00:38)
Logging and Tracing (14:15)
  • Windows Event Log (00:38)
  • Create Event Log (02:19)
  • Write to / View Log (01:18)
  • Tracing Application (03:06)
  • Trace Switch / Listeners (03:04)
  • Write Trace Listeners (01:52)
  • Modify Configuration (00:54)
  • Summary (01:01)
Understanding Inheritance (14:07)
  • Overview (01:32)
  • Inheritance Class (03:01)
  • Overriding (01:47)
  • Virtual (02:20)
  • Shadowing (02:37)
  • Protected (02:05)
  • Summary (00:42)
Implementing Inheritance (20:10)
  • Supporting Inheritance (00:31)
  • Setting Class / Properties (05:19)
  • Override Methods (00:52)
  • Create Derived Class (04:17)
  • Overloads Overrides (03:06)
  • Implement Derived Class (01:34)
  • Overriding in Action (03:25)
  • Summary (01:02)
Using Inheritance (20:10)
  • Customize Controls (02:12)
  • Create Derived Group Box (05:06)
  • Create Custom Control (03:22)
  • Create Custom Event (02:18)
  • Override Inherited Class (05:55)
  • Summary (01:14)
Using Custom Controls (08:45)
  • Setting Up Component (00:50)
  • Add to Toolbox (03:35)
  • Create Control Toolbox (02:14)
  • Test Derived Control (00:34)
  • Summary (01:31)
Polymorphism (09:39)
  • Overview (02:57)
  • Inheritance-based (03:03)
  • Base Class Type (01:57)
  • Summary (01:40)

Module 7

Using Interfaces (21:44)
  • Overview (01:06)
  • Work with Interfaces (04:58)
  • Implement Interfaces (03:59)
  • Implement IComparable (02:16)
  • IComparable.CompareTo (02:08)
  • Implement IComparer (02:05)
  • Use Dual Interfaces (04:04)
  • Summary (01:06)
Selecting Files (13:17)
  • Useable Form Controls (00:45)
  • ShowDialog Method (05:21)
  • Filter Property (01:30)
  • Control Properties (02:19)
  • Events (02:38)
  • Summary (00:42)
Path and FileSystemInfo (14:34)
  • Path Class (01:03)
  • Path Class Methods (04:28)
  • Directory / File Classes (02:23)
  • Object Hierarchy (00:44)
  • FileSystemInfo Class (00:44)
  • Directory Class Methods (03:20)
  • Create Directory Method (01:19)
  • Summary (00:30)
TreeView Control (17:09)
  • Get Logical Drives (00:40)
  • Add Nodes (02:17)
  • Expand Nodes (02:47)
  • Get Folder Names (03:11)
  • View Expanded Tree (01:12)
  • File / Folder Properties (01:45)
  • TreeView After Select (02:26)
  • Polymorphism (01:51)
  • Summary (00:55)
Reading and Writing Files (12:42)
  • Stream-based Objects (00:47)
  • FillList Procedure (04:18)
  • FileStream Object (01:01)
  • FileStream Reader (02:13)
  • Alternative Solutions (01:14)
  • StreamWriter (01:50)
  • Summary (01:16)

Module 8

Working with Arrays (18:50)
  • Overview (00:59)
  • Create Arrays (02:30)
  • Dynamically Sized Arrays (04:00)
  • Arrays as Objects (01:58)
  • Clone an Array (01:53)
  • User-defined Arrays (01:51)
  • Initializing Arrays (02:41)
  • Multidimensional Arrays (01:33)
  • Summary (01:22)
Controlling Arrays (19:32)
  • Retrieve Array Items (00:34)
  • For Each Loop (04:00)
  • GetUpperBound Method (02:05)
  • Pass an Array (02:03)
  • System.Array Members (01:23)
  • Sort Arrays (04:19)
  • Search Arrays (04:15)
  • Summary (00:51)
Arrays in .NET (12:01)
  • Array Examples (00:53)
  • Arrays and Text Files (06:20)
  • Resize Theory (01:38)
  • Sort TextLine Array (02:24)
  • Summary (00:44)
ArrayList Class (15:14)
  • Overview (00:49)
  • Add / Insert Method (03:17)
  • AddRange Method (01:46)
  • Manipulate ArrayList (04:20)
  • ArrayList and Text Files (04:20)
  • Summary (00:39)
HashTable and SortedList (14:46)
  • HashTable DataStructure (01:13)
  • Add Item to HashTable (02:05)
  • HashTable Theory (02:52)
  • Assign HashTable Value (01:03)
  • Retrieve From HashTable (01:46)
  • Iterate Through HashTable (02:06)
  • SortedList Class (02:41)
  • Summary (00:56)
Stack Queue and Collections (18:53)
  • Stack And Queue Concepts (01:32)
  • Add Items (02:34)
  • Peek Method (01:56)
  • Pop / Dequeue (03:04)
  • Typed Collections (02:37)
  • Array Problems / Solutions (04:13)
  • FillTextLineCollection (01:50)
  • Summary (01:03)