Learn your way! Get started

Dev Apps Visual Basic 2008: Enterprise, Mobile, and Security

with experts Ken Getz, Robert Green


Course at a glance

Included in these subscriptions:

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

Release date 12/23/2008
Level Intermediate
Runtime 12h 27m
Closed captioning N/A
Transcript N/A
eBooks / courseware Included
Hands-on labs Included
Sample code Included
Exams Included
Platform Internet Explorer Only


Enterprise Solutions

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



Course description

This course moves your development skills even further beyond the basics, starting with learning how to extend Visual Studio 2008 and handling issues you will encounter with multiple versions of assemblies and applications. You will learn to create and debug Windows services, and how to create and test applications for Windows Mobile devices. You will become expert working with XML, reading and writing data using the XML DOM and the XML reader/writer classes. Visual Studio 2008 adds new data-related features—you will learn about these new features, and also how to create new custom controls, secure applications, and create setup applications so you can deploy your solutions. You will finish by learning how to analyze code at runtime using attributes and reflection, and how to use the new Visual Studio 2008 client application services.

Meet the experts

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.

Robert Green is a Visual Studio expert and a featured instructor for several of our Visual Basic and Visual C# courses. He is currently a Technical Evangelist in the Developer Platform and Evangelism (DPE) group at Microsoft. He has also worked for Microsoft on the Developer Tools marketing team and as Community Lead on the Visual Basic team. Robert has several years of consulting experience focused on developer training and is a frequent speaker at technology conferences including TechEd, VSLive, VSConnections, and Advisor Live.

Course outline



Module 1

Item Templates (27:18)
  • Introduction (02:41)
  • Overview (00:55)
  • Creating an Item Template (00:28)
  • Demo: Create a Template (09:50)
  • Managing Item Templates (02:34)
  • Contents Of Item Template File (00:53)
  • Modifying A Template (01:11)
  • Demo: Modifying A Template (08:07)
  • Summary (00:34)
Project Templates (23:49)
  • Introduction (00:51)
  • Templates (00:18)
  • Creating a Project Template (00:16)
  • Managing Project Templates (01:37)
  • Contents of Template File (00:45)
  • Organizing Project Templates (01:20)
  • Demo: Project Template (17:46)
  • Summary (00:53)
Code Snippets (19:39)
  • Introduction (00:57)
  • Snippets Overview (01:08)
  • Using Code Snippets (00:32)
  • Managing Code Snippets (01:02)
  • Creating and Modifying (00:45)
  • Demo: Snippets (14:05)
  • Summary (01:08)

Module 2

Macros (18:42)
  • Introduction (00:54)
  • Using Macros (01:01)
  • Recoding a Macro (00:24)
  • Running a Macro (00:10)
  • Visual Studio Macros IDE (00:13)
  • Demo: Macros (04:35)
  • Properties In DTE Interface (00:52)
  • TextSelection Interface (00:40)
  • Saving Macros (00:34)
  • Macro Projects (00:46)
  • Demo: Saving Macros (07:56)
  • Summary (00:32)
Private Assemblies (25:31)
  • Introduction (01:05)
  • Assemblies (00:50)
  • Version Numbers (00:48)
  • How CLR Locates Assemblies (00:41)
  • Demo: Assembly Manifest (02:55)
  • How CLR Locates Assemblies (01:20)
  • Private Assemblies (01:14)
  • Using Configuration Files (01:03)
  • Demo: Private Assemblies (14:40)
  • Summary (00:52)
Strong Naming (17:42)
  • Introduction (00:50)
  • Strong Naming Assemblies (01:44)
  • Demo: Strong Naming (02:16)
  • Demo: Sign the Assembly (07:28)
  • Demo: Versioning (04:33)
  • Summary (00:49)

Module 3

Shared Assemblies (11:16)
  • Introduction (01:03)
  • Overview (01:19)
  • Global Assembly Cache (00:49)
  • References Assemblies (01:05)
  • Demo: Shared Assemblies (05:42)
  • Summary (01:15)
Windows Services (21:05)
  • Introduction (00:54)
  • Introducing Window Services (00:48)
  • Windows Services and .NET (00:36)
  • Things to Consider (02:01)
  • Steps for Building Services (00:28)
  • Demo: Simple Windows Serv (15:43)
  • Summary (00:33)
File Watcher Service (22:58)
  • Introduction (01:06)
  • FileWatcher (00:59)
  • FileSystemWatcher Class (01:38)
  • Event-Handling Code (00:10)
  • OnStart Event Procedure (00:12)
  • Debugging Your Service (01:24)
  • Demo: FileWatcher Service (08:17)
  • Passing Parameters (00:54)
  • Demo: Debugging Service (06:10)
  • What"s Next? (01:20)
  • Summary (00:45)

Module 4

Device Development (26:55)
  • Introduction (00:48)
  • .NET Compact Framework (01:50)
  • VS Devices Development (01:05)
  • Device Emulators (01:10)
  • Demo: Device Development (14:20)
  • Compact Framework Classes (01:58)
  • Demo: Status Namespace (05:09)
  • Summary (00:31)
Mobile Database Apps (14:12)
  • Introduction (00:46)
  • Overview (00:24)
  • SQL Server Compact 3.5 (00:39)
  • Mobile Database Applications (01:09)
  • Demo: Mobile Database App (10:06)
  • Summary (01:06)

Module 5

Reading XML (49:32)
  • Introduction (00:55)
  • Getting Started (01:20)
  • XML Document Object Model (01:01)
  • Tree-Based XML Handling (03:50)
  • Non-Cached XML Handling (00:31)
  • What is the XML Dom? (00:54)
  • Sample File (00:12)
  • Demo: Sample XML File (04:40)
  • Load XML Data (00:54)
  • Node"s Children (01:18)
  • Demo: Load XML Data (03:53)
  • Iterate through All Nodes (00:18)
  • Retrieve Element Nodes (01:14)
  • Examining the Results (00:43)
  • Retrieve Just Text Nodes (00:41)
  • Demo: Visit All Nodes (07:57)
  • Nodes Matching a Criterion (00:40)
  • Getting Started with XPath (01:07)
  • More About XPath (01:38)
  • Demo: Searching Using XPath (01:48)
  • Content Includes Namespace (01:08)
  • Demo: XML Namespaces (05:15)
  • Reference to Specific Node (00:26)
  • Navigate to Related Nodes (00:49)
  • Retrieve Attributes of a Node (00:49)
  • Demo: Node Attributes (04:41)
  • Summary (00:35)
Writing XML (18:23)
  • Introduction (00:40)
  • Create XML Programmatically (00:26)
  • Adding Nodes (01:06)
  • Add or Delete Elements (00:34)
  • Remove All Nodes (00:18)
  • Demo: Creating XML (05:38)
  • Add or Delete Attributes (00:54)
  • Modify Element"s Value (00:30)
  • Demo: Modifying Values (00:03)
  • Modify Attribute"s Value (04:09)
  • XML Isn"t Well Formed (00:19)
  • Handle XML Loading Errors (00:39)
  • Demo: Bad XML (02:05)
  • Summary (00:56)

Module 6

XML Reader (30:55)
  • Introduction (00:57)
  • Reading XML With XmlReader (00:47)
  • XmlReader Properties (00:57)
  • XmlReader Methods (02:58)
  • Demo: Reading XML (13:36)
  • XmlReaderSettings Class (00:51)
  • XML Schema (01:09)
  • Validate XML Against Schema (01:02)
  • Demo: Validate XML (07:33)
  • Summary (01:01)
XMLWriter (14:04)
  • Introduction (00:48)
  • Writing XML With XmlWriter (00:52)
  • XmlWriter Methods (01:31)
  • XmlWriterSettings Class (00:53)
  • Demo: Writing XML (09:34)
  • Summary (00:25)
Querying XML (15:23)
  • Introduction (01:10)
  • XPathNodeIterator Class (00:44)
  • XPath Expressions (01:44)
  • Compiled XPath Queries (00:29)
  • Demo: Querying XML (09:57)
  • Summary (01:16)

Module 7

Hierarchical and Caching (34:54)
  • Introduction (00:59)
  • Work with Related Data (02:38)
  • TableAdapterManager (01:01)
  • Demo: TableAdapterManager (00:27)
  • View DataSet (00:13)
  • View Relations (04:34)
  • AutoIncrement Properties (02:43)
  • Connected Scenarios (01:59)
  • Synch Local Data (01:15)
  • Synch Services for ADO.NET (01:13)
  • SQL Server Compact 3.5 (00:40)
  • Set Up Synchronization (00:54)
  • Demo: ADO.NET Synch (00:48)
  • Add Local Database Cache (00:58)
  • Configure Tables (03:25)
  • Explore Solution Files (00:38)
  • Rebind Data Controls (02:30)
  • Synchronize Data (02:38)
  • Test Synch/Remote Data (03:06)
  • SyncStatistics Class (00:35)
  • SyncDirection Property (01:12)
  • Summary (00:18)
Ntier Data (33:01)
  • Introduction (00:42)
  • Overview: 2-Tier (01:11)
  • Overview: N-Tier (02:24)
  • Demo: Split DataSet Code (03:23)
  • Create N-Tier App (00:34)
  • Define 2-Tier DataSource (00:59)
  • DataSet Project Property (01:38)
  • Create Multi-Tier Form (00:17)
  • Define N-Tier DataSource (04:16)
  • Test N-Tier App (00:47)
  • LINQ to SQL (01:03)
  • LINQ to SQL Mappings (00:49)
  • DataContext Class (00:42)
  • Entity Classes (00:12)
  • Object Relational Designer (00:36)
  • Demo: LINQ to SQL (02:30)
  • View Designer Class (02:01)
  • Create Front End (06:29)
  • Configure Behavior (00:42)
  • Specify Mappings (01:22)
  • Summary (00:14)

Module 8

Custom Controls Inheriting (26:47)
  • Introduction (00:57)
  • Control Creation in Forms (01:51)
  • Inherit Exhisting Control (00:49)
  • Required Steps (00:54)
  • TextBox with Required Input (01:14)
  • Demo: Textbox Control (09:28)
  • Adding Finishing Touches (00:27)
  • Toolbox Bitmap (01:25)
  • Hiding a Property (00:21)
  • Property Category (05:28)
  • Demo: Finished Sample (03:05)
  • Summary (00:43)
Custom Controls Drawing (21:21)
  • Introduction (00:47)
  • Inherit Conrol Base Class (00:33)
  • Required Steps (00:44)
  • Control Properties (00:25)
  • Drawing the Control (01:08)
  • Demo: Resizable Checkbox (05:54)
  • Default Values (00:32)
  • Simple Types (00:29)
  • Other Types (01:20)
  • Raising Events (00:27)
  • Hiding Properties (00:36)
  • Ease-of-Use Features (00:46)
  • Demo: Features (06:44)
  • Summary (00:48)
Custom Controls Composite (12:02)
  • Introduction (00:41)
  • Creating Composite Controls (00:45)
  • Required Steps (00:47)
  • The Sample Control (00:35)
  • Demo: Label/Textbox Conrol (08:06)
  • Summary (01:06)

Module 9

Code Access Security (24:14)
  • Introduction (01:06)
  • Overview of Security (00:47)
  • Evidence (00:33)
  • Security Zones (02:02)
  • Security Policy (00:19)
  • Security Policy Levels (00:52)
  • Code Groups (01:10)
  • Permission Sets (00:51)
  • Security Policy Overview (01:13)
  • Demo: Code Access Security (05:33)
  • CLR Grants Permissions (00:50)
  • Configuring Security Policy (01:35)
  • Demo: Granting Permissions (07:02)
  • Summary (00:14)
Permissions (14:35)
  • Introduction (00:59)
  • Checking For Permissions (01:26)
  • Code Access Permissions (00:57)
  • Using Declarative Syntax (00:41)
  • Demo: Check Permissions (09:55)
  • Summary (00:35)
Role Based Security (15:47)
  • Introduction (00:48)
  • Overview (00:32)
  • Identity (00:28)
  • WindowsIdentity Class (00:19)
  • GenericIdentity Class (00:22)
  • Principal (00:29)
  • WindowsPrincipal Class (00:35)
  • GenericPrincipal Class (00:24)
  • PrincipalPermission (00:47)
  • Demo: Role-based Security (10:18)
  • Summary (00:41)

Module 10

Setup Projects (13:53)
  • Introduction (00:54)
  • Windows Installer Deployment (01:14)
  • Setup Project Properties (02:17)
  • Demo: Setup Project (08:57)
  • Summary (00:28)
Customize Setup Projects (30:12)
  • Introduction (00:37)
  • Deployment Editors (01:26)
  • File System Editor (00:37)
  • User Interface Editor (02:31)
  • Demo: Customizing Setup (11:56)
  • Launch Conditions Editor (01:12)
  • Prerequisites (01:01)
  • Demo: Add Launch Conditions (10:14)
  • Summary (00:33)
Custom Actions (14:20)
  • Introduction (00:42)
  • Custom Actions Editor (01:21)
  • Custom Actions (00:52)
  • Demo: Add a Custom Action (10:28)
  • Summary (00:55)

Module 11

Attributes (34:02)
  • Introduction (00:52)
  • Introducing Attributes (00:28)
  • Attributes in VB 6 (01:02)
  • Attributes in .NET (00:50)
  • Attribute Syntax (03:15)
  • Attributes as Classes (01:23)
  • Abbreviate the Class Name (00:34)
  • Attributes in Managed Code (00:12)
  • DebuggerStepThrough Attr (00:25)
  • Obsolete Attribute (00:40)
  • Were are Attributes Applied? (01:03)
  • Demo: Attributes (04:44)
  • Custom Attributes (00:23)
  • Custom Attributes Class (00:35)
  • Follow the Rules (00:54)
  • Demo: AuthorInfoAttribute (05:39)
  • Retrieving Attribute Values (00:30)
  • The System.Type Class (00:57)
  • Reflection.MethodInfo (00:45)
  • Attribute Class"s Methods (00:56)
  • Demo: Dump Attribute Info (07:11)
  • Summary (00:34)
Reflection (43:37)
  • Introduction (01:02)
  • Introducing Reflection (01:27)
  • Assemblies, Modules, Types (01:00)
  • Reflection Classes (01:42)
  • Reference to an Assembly (00:42)
  • Working with Types (00:37)
  • Retrieving a Type Object (01:01)
  • Retrieving Type Properties (00:46)
  • Retrieving Type Members (00:23)
  • Demo: Assembly Info (11:25)
  • Perform Late Binding (00:32)
  • Why Use Late Binding? (01:05)
  • Why Not Use Late Binding? (00:25)
  • Late Binding Sample (01:03)
  • Demo: Late Binding (19:04)
  • Summary (01:14)

Module 12

Client App Services (37:22)
  • Introduction (01:11)
  • Manage Members / Roles (01:41)
  • Configure Web Site Security (00:48)
  • Demo: Web Site Security (00:11)
  • Run aspnet_regsql (00:20)
  • ASP.NET SQL Server Wizard (00:48)
  • Create Web Site (01:12)
  • Set Web Site Properties (00:42)
  • Set up Security (00:15)
  • Web Site Administration Tool (01:13)
  • Create Roles (00:17)
  • Add Users/Access Rules (01:33)
  • Manage Roles (01:26)
  • Windows Application Features (01:03)
  • Role Based Security (00:58)
  • Project Settings (00:49)
  • Client Application Services (01:21)
  • Authentication (01:58)
  • Enable Client Application Serv (01:42)
  • Set Authentication Mode (00:18)
  • Configure Web Site to Listen (01:21)
  • Use Authentication Service (03:57)
  • Modify Login Form (01:55)
  • Use Credentials Provider (05:03)
  • Remember Login Credentials (01:08)
  • Code to Logout (02:52)
  • Summary (01:07)
Roles Settings CustomProvs (33:51)
  • Introduction (00:42)
  • Overview: Roles (01:05)
  • Overview: Settings (01:21)
  • Demo: Remote Roles/Profiles (02:24)
  • Use Roles Service (03:09)
  • Add/Define Settings (01:52)
  • Bind Settings (02:43)
  • Save Settings (00:23)
  • Run Application (01:10)
  • Use Profile Service (01:41)
  • Load Web Settings (01:46)
  • Test Web Settings (02:22)
  • Custom Membership Providers (01:33)
  • Custom Role Providers (00:55)
  • Demo: Membership/Role Prov. (01:23)
  • View User.xml/Roles.xml (00:48)
  • Create Membership Provider (03:25)
  • Create Role Provider (02:22)
  • Test the Providers (01:49)
  • Summary (00:49)