Showing results for VB2008 - Visual Basic Blog

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 7, 2009
Post comments count0
Post likes count0

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
Post comments count0
Post likes count0

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

Sep 25, 2009
Post comments count0
Post likes count0

Testing Events for Nothing/Null (Doug Rothaus)

VBTeam
VBTeam

While helping some Windows API folks with some sample code this week, I stumbled upon...uh...I mean “carefully researched” an issue that you might find handy.You may be aware that the RaiseEvent statement automatically checks to verify if an event handler exists before raising the event. If the event is Nothing, then there’s no ev...

Aug 5, 2009
Post comments count0
Post likes count0

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
Post comments count0
Post likes count0

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

Jul 10, 2009
Post comments count0
Post likes count0

Dynamic Searching using LINQ – Dataset + Joins

VBTeam
VBTeam

About two years ago I posted some code that shows how to dynamically construct LINQ queries at runtime.  On average there's a couple questions per month about trying it in some edge case, and usually the support already exists within the API.  Recently though someone posted a question that has to do with Datasets and Joins that raised som...

Jun 19, 2009
Post comments count0
Post likes count0

VB Entity Framework Samples Now Available (Lisa Feigenbaum)

Lisa Feigenbaum
Lisa Feigenbaum

There are a lot of great Entity Framework samples on Code Gallery that you can now find available in Visual Basic .NET. This was recently announced on the ADO.NET team blog. Browse through the list below and start downloading! ADO.NET Entity Framework Query Samples (Download)ADO.NET Entity Framework Query Samples is a small Windows Forms progr...

May 21, 2009
Post comments count0
Post likes count0

Phoning Home, revisited (Matt Gertz)

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

In my post “M. G. Phone Home,” I discussed how to write a simple phone application for Windows Mobile, using Visual Basic, which accesses the Bluetooth service.  What I didn’t discuss was how to deploy it to the phone via CAB.  Since I purchased a new phone yesterday (a Samsung Saga, running Windows Mobile 6.1), and I&rs...

May 4, 2009
Post comments count0
Post likes count0

CodeRush Xpress 9.1 Beta: 59 Refactorings, 17 Consume-first providers, and Much more! (Lisa Feigenbaum)

Lisa Feigenbaum
Lisa Feigenbaum

Very exciting news! Developer Express is coming out with a new version of the FREE add-in we all know today as Refactor!. The new product, CodeRush XPress, builds on Refactor! by increasing the refactoring count to 59! It also includes a host of other editing functionality, making it a much richer tool for all-around IDE productivity. Consume-first...