Moving from VB6 to VB.NET
This mini-course presents the main issues, options and tools in moving from VB6 to VB.NET
You are currently not signed in. Please sign in to access subscriber-only content.
Currently using: {{getCurrentPlayerName()}} [Change]
| expand all | collapse all | Progress | Duration | |
|---|---|---|---|
VB6 to VB.NET: The Big Picture |
|
01:04:47 | |
|
Introduction
|
|
00:23 | |
|
Module overview
|
|
00:47 | |
|
'This will only hurt a little bit' --- similarities between VB6 and VB.NET
|
|
00:33 | |
|
The devil is in the details --- differences...
|
|
01:38 | |
|
The good news --- transition help and benefits
|
|
01:40 | |
|
Demo: a simple listbox app in VB6
|
|
00:36 | |
|
Demo: equivalent listbox app in VB.NET
|
|
00:11 | |
|
Demo: creating VB.NET project in Visual Studio 2008
|
|
01:05 | |
|
Demo: creating the UI
|
|
01:29 | |
|
Demo: programming Load event, compile, run
|
|
01:26 | |
|
Demo: configuring button and programming Click event
|
|
01:45 | |
|
Demo: With statement and VB.NET background compilation
|
|
02:12 | |
|
Demo: VB.NET support for form resizing
|
|
01:35 | |
|
Demo: summary of VB.NET listbox app
|
|
00:57 | |
|
What's so different about VB.NET?
|
|
00:11 | |
|
Major difference #1: a new run-time (CLR)
|
|
02:11 | |
|
Major difference #2: compilation to platform-neutral assembly language (MSIL)
|
|
02:30 | |
|
Major difference #3: a new component resolution algorithm (e.g. GAC)
|
|
03:55 | |
|
Strategies for moving from VB6 to VB.NET
|
|
01:53 | |
|
Overview of Microsoft's VB6 Upgrade Wizard (one possible strategy)
|
|
02:16 | |
|
Demo: upgrade wizard example #1 of single-tier VB6 database app
|
|
01:35 | |
|
Demo: running upgrade wizard
|
|
02:33 | |
|
Demo: upgrade wizard's generated result
|
|
01:51 | |
|
Demo: reviewing the upgrade report
|
|
01:38 | |
|
Demo: warning, 'generated data access code may not scale'
|
|
00:45 | |
|
Summary of upgrade wizard demo #1
|
|
00:49 | |
|
Demo: upgrade wizard example #2 of MDI-based text editor
|
|
01:39 | |
|
Demo: running the upgrade wizard
|
|
02:01 | |
|
Demo: upgrade wizard's generated result
|
|
01:13 | |
|
Demo: upgrade issue #1, dynamic binding
|
|
03:28 | |
|
Demo: upgrade issue #2, dynamic vs. static binding
|
|
02:54 | |
|
Demo: upgrade issue #3, the 'My.' productivity framework
|
|
02:24 | |
|
Summary of upgrade wizard demo #2
|
|
01:05 | |
|
Overview of Microsoft's Code Advisor for VB6
|
|
01:27 | |
|
Demo: running Code Advisor for VB6
|
|
02:50 | |
|
Overview of mixed-mode projects (another possible strategy)
|
|
01:08 | |
|
Mixed-mode trade-offs
|
|
02:12 | |
|
Our Training Goal
|
|
00:51 | |
|
Resources
|
|
01:26 | |
|
Summary
|
|
01:21 | |
|
Questions? Email address and blog URL
|
|
00:24 | |
Language Changes: VB6 to VB.NET |
|
01:03:06 | |
|
Introduction
|
|
00:12 | |
|
Module overview
|
|
00:25 | |
|
Module subtext --- ways of thinking (VB6 vs .NET vs VB.NET)
|
|
01:00 | |
|
Module examples --- overview
|
|
00:50 | |
|
Example #1: Reading from a text file in VB6
|
|
01:29 | |
|
Demo: example #1 in VB.NET --- 'the VB6 way'
|
|
04:16 | |
|
Summary of example #1 'the VB6 way'
|
|
00:50 | |
|
What's wrong with the 'VB6' way of writing VB.NET?
|
|
01:46 | |
|
Again with example #1 in VB.NET --- this time 'the .NET way'
|
|
00:18 | |
|
Exception handling with Try-Catch
|
|
01:31 | |
|
Files and the StreamReader object
|
|
00:46 | |
|
Proper close/cleanup with Using
|
|
01:19 | |
|
Catching and Throwing exceptions
|
|
02:22 | |
|
Summary of example #1 'the VB.NET way'
|
|
00:16 | |
|
Again with example #1 in VB.NET --- this time 'the VB.NET way'
|
|
00:51 | |
|
Example #2: a Product class in VB6
|
|
01:24 | |
|
Using a VB6 class
|
|
00:36 | |
|
Motivating VB.NET changes to Product class
|
|
00:14 | |
|
Real constructors!
|
|
01:14 | |
|
Garbage collection instead of reference counting!
|
|
01:12 | |
|
Demo: Product class in VB.NET
|
|
02:31 | |
|
Demo: using Product class in VB.NET
|
|
02:30 | |
|
Summary of Product Class in VB.NET
|
|
01:34 | |
|
Class Properties in VB6
|
|
00:47 | |
|
Demo: Class Properties in VB.NET
|
|
03:48 | |
|
Summary of Class Properties in VB.NET
|
|
00:37 | |
|
Example #3: data access in VB6
|
|
02:34 | |
|
Example #3 in VB.NET --- 'the VB6 way'
|
|
02:19 | |
|
Again example #3 in VB.NET --- this time 'the .NET way'
|
|
00:18 | |
|
DataSets == disconnected recordsets
|
|
00:34 | |
|
Factory pattern for database-neutral, reusable code
|
|
04:00 | |
|
Collection vs Dictionary
|
|
01:18 | |
|
Generics!
|
|
01:44 | |
|
Working with DataSets
|
|
01:30 | |
|
Demo: working with DataSets
|
|
03:54 | |
|
Working with Factory objects, filling DataSets
|
|
01:16 | |
|
Demo: Factory objects and Filling DataSets
|
|
05:47 | |
|
Summary of Factory objects and filling DataSets
|
|
00:28 | |
|
Resources
|
|
00:44 | |
|
Summary
|
|
01:44 | |
|
Questions? Email address, blog URL
|
|
00:18 |
VB6 to VB.NET: The Big Picture