Visual Studio 2008 Launch - Hands On Labs

Published 04 April 08 04:20 PM

I was just informed that all the Hands On Labs from the Visual Studio/Windows Server/SQL Server 2008 launch events are available online here.

I took a brief look at the "Visual Basic 9 Language Enhancements" lab and in general it looks good although it completely omits XML Literals and XML properties, I'm assuming because this lab was created before the RTM release. I'd take a look here for a good starting point on XML in VB. I also will plug my XML in VB webcast I did this morning that you can download.

The lab does have a chapter on lambda expressions so if you want to dive deeper into that topic you can have a look. The lab doesn't really get into the expanded query expressions that VB supports (which helps me avoid most common lambdas ;-) so you can have a look here and here for a good starting point.

I also noticed that the link for additional information in the beginning is pretty outdated. The help has been updated since these labs were created with more complete information. I'd suggest starting here instead. Or if you're really gutsy, read the VB 9 Language spec.

Also I noticed a small syntax error for array initializers. If you're having trouble on page 13 getting the syntax to work, you just need to add a parentheses to the square variable:

Dim square() = { _
New Point With { .X = 0, .Y = 5 }, _
New Point With { .X = 5, .Y = 5 }, _
New Point With { .X = 5, .Y = 0 }, _
New Point With { .X = 0, .Y = 0 } _
}

This will create an object array with 4 point objects inside and will only work if you have option strict off. It's much better to write:

Dim square As Point() = { _
New Point With { .X = 0, .Y = 5 }, _
New Point With { .X = 5, .Y = 5 }, _
New Point With { .X = 5, .Y = 0 }, _
New Point With { .X = 0, .Y = 0 } _
}

The rest of the chapter explains this so I think it was just a typo.

Enjoy!

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Airline Travel » Visual Studio 2008 Launch - Hands On Labs said on April 4, 2008 9:40 PM:

PingBack from http://www.travel-hilarity.com/airline_travel/?p=2468

# Paul Mooney said on April 4, 2008 9:45 PM:

Visual Studio 2008 Launch - Hands On LabsJust the other night we had our NYC VB.Net Heroes Launch thing...

# Jorge Serrano - MVP Visual Developer - Visual Basic said on April 5, 2008 2:41 AM:

Hace apenas unos minutos he publicado una entrada con los HOL de {Heroes} que abarca a tres productos

# wisemx said on April 6, 2008 8:33 PM:

Beth you really do a great job with these.

Any chance you'll touch on LINQ in ASP.NET on Windows Server 2008?

There's a huge audience out here that will benefit.

Personally I enjoy working with VB more than C# for ASP.NET 3.5 SQL/LINQ on WS2008.

# Clif said on April 7, 2008 1:28 PM:

You can also declare it like this:

Dim square() = New Point() { _

   New Point With {.X = 0, .Y = 5}, _

   New Point With {.X = 5, .Y = 5}, _

   New Point With {.X = 5, .Y = 0}, _

   New Point With {.X = 0, .Y = 0} _

   }

# Beth Massi said on April 7, 2008 1:33 PM:

Hi Wisemx,

Have you checked out www.asp.net? There are tons of videos and tutorials there. See: http://www.asp.net/learn/linq-videos/

HTH,

-B

# Beth Massi said on April 7, 2008 1:34 PM:

Hi Clif,

Yes you can write it that way as long as you have Option Infer ON.

Cheers,

-B

# DanF said on April 7, 2008 3:32 PM:

Any chance there is a place to get the code files for the labs and not just the PDFs?

# wisemx said on April 7, 2008 7:58 PM:

Hi Beth...Yes I send people to the ASP.NET videos almost daily.

What I meant was, your special touch will be nice.

 All the best,

   Mark Wisecarver

# Beth Massi said on April 9, 2008 1:07 PM:

Hi Dan,

The labs should be available here:

http://www.microsoft.com/events/vlabs/default.mspx

Cheers,

-B

# Bob said on April 10, 2008 7:43 AM:

Page 4 of the PDF states to navigate to \whatsnewvb\setup and run SetupEx.cmd. I couldn't find it or a link to download it.

# Beth Massi said on April 10, 2008 2:27 PM:

Hi Bob,

Did you take a look at the virtual labs link?

http://www.microsoft.com/events/vlabs/default.mspx

Most of them should be there.

This is the VB9 Virtual lab:

http://msevents.microsoft.com/CUI/WebCastEventDetails.aspx?EventID=1032360370&EventCategory=3&culture=en-US&CountryCode=US

HTH,

-B

# khan said on April 10, 2008 6:55 PM:

Hello,

Where can I get Windows API for VB.net.

is VB.net limited as compare to C#.

thax.

# Beth Massi said on April 10, 2008 7:16 PM:

Hi Khan,

I'm not sure what you're talking about. All the same .NET framework classes that are available in C# are available in VB.NET. Most Windows APIs are surfaced through the .NET framework, which consists of over 5000 classes.

Here's the library reference: http://msdn2.microsoft.com/en-us/library/aa139615.aspx

HTH,

-B

# Bob said on April 11, 2008 6:41 AM:

Thanks. I was looking for one that matched the title on the PDF file. Now that I know that don't match, I'll take a look at it later.

# Shariq said on April 24, 2008 1:57 PM:

Much Better then other ver.........

Leave a Comment

(required) 
(optional)
(required) 

About Beth Massi

Beth is an Online Content and Community Program Manager on the Visual Studio Community Team responsible for producing content for business application developers and driving community features onto MSDN Developer Centers (http://msdn.com/). She also produces content on her blog (http://blogs.msdn.com/bethmassi), Channel 9 (http://channel9.msdn.com/), and a variety of other developer sites. As a Visual Basic community champion and a long-time member of the Microsoft community she also helps with the San Francisco East Bay .NET user group and is a frequent speaker at various software development events. Before Microsoft, she was a Senior Architect at a health care software product company and a Microsoft Solutions Architect MVP. Over the last decade she has worked on distributed applications and frameworks, web and Windows-based applications using Microsoft development tools in a variety of businesses. She loves teaching, hiking, mountain biking, and modifying cars.
Page view tracker