Visual Basic Blog

A group blog from members of the VB team

One is the Loneliest Number (Matt Gertz)

(This post assumes that you’ve read my previous post on Windows Media at http://blogs.msdn.com/vbteam/archive/2007/10/30/let-the-music-play-matt-gertz.aspx â€“ I will be modifying that code in this post.) After posting my media player blog sample a couple of weeks ago, I got a few questions from a reader called Saleem on how to adapt it...

Let the Music Play! (Matt Gertz)

Oh, boy.  Sorry I haven’t written any posts lately, but I’ve transitioned to a new job within Visual Studio and have been getting my sea legs there.  One of the job tasks is getting Visual Studio 2008 out to you folks, and while I’ve always been involved with that aspect of the product in the past, it was always to ...

A Note about Enums (Scott Wisniewski)

I recently received an email from a customer who had a few questions about "enum inheritance" in VB, specifically as to why it wasn't supported. In particular, he sent us the following snippet of VB code  (I've changed the names of the classes and methods involved)  : Option Strict On Public Class BaseClass    Public ...

Visual Basic Pack for Visual Studio 2005 SDK Released! (Beth Massi)

The Visual Studio Extensibility (VSX) Team released the Visual Basic Pack for Visual Studio 2005 SDK on Friday! This download provides the SDK samples in Visual Basic and a new wizard that is used for generating Visual Basic-based integration packages for Visual Studio. Head on over to the VSX team blog for more info.It's ...

Fun with VB !!!

Who says you can't obfuscate VB code? For fun, I tried writing some VB code which was shaped in the letters 'vb' (that's right, the code itself forms the shape of the letters), where the 'v' and the 'b' are formed from the Visual Studio inifinity logo. In case you're having trouble visualizing that, here's a picture. Because I'm forming the ...

Microsoft Visual Basic 2005 Power Packs 2.0 now available

In case you didn't see the links go live on the Visual Basic Developer Center the VB Off-Cycle team has shipped the latest edition of the Power Pack controls.  You can download them from here.In this update we've added the much anticipated Line and Shape controls.  (image) The line and shape controls give you drag and drop ease ...

Sons and Daughters Day: a pure blast!

On Friday, Chris Smith and I (Chris is a test engineer on the VB Team) attended an event called 'Sons and Daughters' day. The day consisted of 2 sessions (20-25 kids in each) where kids aged 6-13 were run through a class of writing an app in VB (20-25 kids in each). The class was very introductory, but eas very appropriate for the ...

Using the PrintForm component in Visual Basic (Matt Gertz)

(This is the fourth and final part of the Paint-by-Numbers series) Late last year, some clever guys on our Visual Basic team released the PrintForm component on the web.  The idea behind the PrintForm component was to make printing and previewing your form very easy in .NET.  I’m going to leverage this component to enable printing ...

Loading and Saving Files in Visual Basic (Matt Gertz)

(This is part 3 of the Paint-by-Numbers series)There are four issues I want to deal with in this post:  New, Open, Save (As), and Exit.  I’ll be doing these in order, but all of them depend on knowing whether or not the application is dirty, so I’ll deal with that problem first.  Opening and saving files isn’t ...

Implementing infinite undo/redo (Matt Gertz)

(This is the second part in my series on creating a Paint-by-Numbers designer application.)This is the first application that I’ve built specifically for this blog, where I’m actually writing the code while I’m writing the blog.  (For example, the Euchre game that I blogged about was something I’d written a couple ...