The Temple of VB (Matt Gertz)

Hi, all! It’s been a while since I’ve posted to this blog, and a lot has happened in my world since then.  Though I’ve been pretty busy on our engineering systems team, I took a little time off last summer to do some traveling and, more importantly, some long overdue writing.  Although I’d always enjoyed writing… Read more

On The Blink (Matt Gertz)

One of the really fun things about being associated with the Visual Basic team is getting to see all of the varied usages to which our customers put it.  From enterprise software to games, our customer base covers a wide range.  The most fun to see, however, are the hobby applications, because the writers of… Read more

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

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… Read more

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

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/presentation”     xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”     Title=”Window1″ Height=”300″ Width=”300″>     <Grid>         <Button Name=”OK” Click=”OK_Click”>OK</Button>     </Grid> </Window>   .   .  … Read more

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

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             MsgBox(“A true statement – we land here”)… Read more