Showing results for VB2005 - Visual Basic Blog

Apr 29, 2011
0
0

The Temple of VB (Matt Gertz)

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

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 the "here's how you bu...

Feb 26, 2010
0
0

On The Blink (Matt Gertz)

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

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 that code come up with some pr...

Nov 16, 2009
0
0

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
0
0

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
0
0

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
0
0

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 7, 2009
0
0

Getting Loopy (Matt Gertz)

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

In my last post, I talked about the hidden costs that can occur whenever you call out to methods, particularly in loops.  In looking at my examples, reader KG2V commented that another thing that folks need to be aware of is avoiding the assumption that the world (or, in this case, a list) is a static thing.  It’s a good point and it...

Oct 6, 2009
0
0

Hidden Costs (Matt Gertz)

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

(Note: there was a grievous error in this post based on a bad assumption on my art regarding VB.  Not feeling the need to hide my ignorance :-), I have instead made a number of edits in this post to bring it back to some semblance of reality.)One thing that gets me annoyed with myself is realizing that the product or service I’ve just bo...

Aug 5, 2009
0
0

It’s a Small World, After All, part 2 – VB, C#, and GPS (Matt Gertz)

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

In my previous post, we fixed up a C# GPS library to provide more support, and wrote all of the UI for a VB GPS application, all based on (but modified from) a Mobile GPS sample in the Windows Mobile 6.0 SDK.  In this post, we’ll finish up the app by enabling a bunch of cool functionality not exposed in the original sample.The C# sample ...

Aug 4, 2009
0
0

It’s a Small World, After All, part 1 – VB, C#, and GPS (Matt Gertz)

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

The title of this blog post has sort of a triple meaning for me.  First of all, I just got back from a long (and wonderful!) cruise in the Caribbean, followed by a stop at Disney World.  And of course, if you go to Disney World with kids, it’s the law that you have to go through the “It’s a Small World” ride, there...