Showing results for VB2010 - Visual Basic Blog

Mar 26, 2010
Post comments count0
Post likes count0

Editing XML Literals Embedded Expressions in Visual Basic 2010 (Avner Aharoni)

VBTeam
VBTeam

The implicit line continuation feature in Visual Basic 2010 provided an opportunity to improve the code editing experience in XML literals embedded expressions. In Visual Studio 2008, pressing Enter inside an embedded expression would result in the cursor being positioned to the left of the end embedded expression tag. In Visual Studio 2010, pressi...

Jan 20, 2010
Post comments count0
Post likes count0

Fun With Dynamic Objects (Doug Rothaus)

VBTeam
VBTeam

A while back, I remember being asked if there was a simple way to expose a source XML document as an object with properties. That is, if the root XML element had a child element <Name>Doug</Name>, then the object would have a Name property that was a string and returned “Doug”. The catch was that the XML document did not con...

Dec 18, 2009
Post comments count0
Post likes count0

There’s No Such Thing As Too Much Euchre! (Matt Gertz)

Anthony D. Green [MSFT]
Anthony D. Green [MSFT]

“Oh, no!”  I hear you cry, “not another blog about Euchre!”Well, I do like the game, to be sure.  But, more importantly, the Euchre scenario enables me to try out any new technologies on a reasonably complex problem (using Visual Basic, of course).  It’s my way of checking out our product to make sure th...

Dec 14, 2009
Post comments count0
Post likes count0

Hidden Gems in VB2010 – Serializing Objects that Raise Events (Jonathan Aneja)

VBTeam
VBTeam

By now you've likely heard about the major new features coming in VB 2010, but there's also a number of smaller additions in the language and IDE that might not be as readily noticeable.  "Hidden Gems" will be a multi-part series where we'll explore some of these smaller enhancements.  First up - serialization! Let’s say you ha...

Nov 16, 2009
Post comments count0
Post likes count0

Spot the Bug! – The Key to using Anonymous Types (Jonathan Aneja)

VBTeam
VBTeam

This one’s going to be long, but for those of you who’ve felt the first 3 in this series were too easy I promise this one’s tougher J. Let’s say you want to list all the customers from a table in a ComboBox, and update the UI based on which one is selected.  To do this we’ll need to bring back two fields from...

Nov 12, 2009
Post comments count0
Post likes count0

Spot the Bug! – Is it in VB or XAML? (Jonathan Aneja)

VBTeam
VBTeam

What’s wrong with the following WPF code?   Class Window1     Sub OK_Click(sender As Object, e As RoutedEventArgs) Handles OK.Click       MsgBox("Button Clicked")   End Sub   End Class   <Window x:Class="Window1"     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/present...

Nov 5, 2009
Post comments count0
Post likes count0

Spot the Bug! – Much ado about Nothing… Part 2! (Jonathan Aneja)

VBTeam
VBTeam

In yesterday’s post we saw that the use of the wrong comparison operator with Nothing in an If block can lead to surprising results.  Let’s look at a slightly different case today:         Dim x As Integer = Nothing         If x = Nothing Then &nbs...

Nov 3, 2009
Post comments count0
Post likes count0

Spot the Bug! – Much Ado about Nothing… (Jonathan Aneja)

VBTeam
VBTeam

Microsoft has this neat mailing list called “Spot the Bug” where developers can send interesting snippets of code that look correct but actually have subtle bugs in them.  The puzzles are a lot of fun and I’ve always thought it’d be a fun thing to try here on the team blog.  Over the past year or so I’ve been keeping a list of interesting...

Oct 21, 2009
Post comments count0
Post likes count0

Visual Basic “How Do I” Videos

Lisa Feigenbaum
Lisa Feigenbaum

We’ve started two new “How Do I” videos series on the Visual Basic Developer Center. More to come, but here’s the latest!

Oct 20, 2009
Post comments count0
Post likes count0

Announcing Visual Studio 2010 Beta 2!

Lisa Feigenbaum
Lisa Feigenbaum

There were a lot of Microsoft announcements that happened yesterday! Many of these happened during Steve Ballmer’s keynote at the SharePoint Developers Conference (Video, Twitter). Here is the list: MSDN subscribers can download Beta 2 now!  We will be opening up Beta 2 for everyone to download starting this Wednesday. In honor of V...