Archive forJuly, 2007

quick fix for Beta 2 VB sample problems

If you’ve installed the Beta 2 samples for VB Orcas 2008, then you will likely find the solutions don’t open.  Problem is they are marked as being for “Orcas” not “2008”.  This quick and dirty code will fix the problem:   With My.Computer.FileSystem    Dim samplesPath = .SpecialDirectories.MyDocuments & “\VB Samples Beta2”    For Each […]

Click here to read more »

Best feature in VS 2008 Beta 2

OMG, I couldn’t believe my eyes….   I went to open a New Project, and although the dialogue looks the same as previous ones, I thought I’d try to re-size it.  Much to my amazement it did !!!!!   Yes, 4 versions later, finally you can resize the New Project dialogue windows !!!!!!!!!!!!!!!!!!!!

Click here to read more »

Reasons to VB part 3: XML

Yesterday Beth posted an interview with Erik Meijer showing integrated support for XML in VB.  There’s a cool examples of using VB9 with XML documents both working with existing documents and creating new ones.  Some important things to note in the video: – You use Imports to create namespace aliases at file level – Add an […]

Click here to read more »

The power of CallByName

Beth and I have been having a argument all in fist fight discussion about dynamic code in VB.  My point to Beth in the discussion was that all the code she showed could in fact be made work reasonably easily with Strict On, such is the power of the CallByName function.  In VB 10 we […]

Click here to read more »

Inside Recipe 7

The VB team has been publishing some LINQ recipes lately.  If you scour their comments you’ll probably notice a few suggestions/corrections from me.  The latest sample I think is worth further discussion so I’ve decided to blog it here. The sample code they show is a function to select a “page” of data:   Public […]

Click here to read more »

Connect bugs scare me

I was just reading Roger Jennings blog and note he logged a bug in Orcas.  What scared me was the response Roger got. It seems his bug was acknowledged pretty quickly, and some 5 hours later they said : Thanks for your feedback. We have reproduced this bug on Visual Studio Codename Orcas June CTP, […]

Click here to read more »

Orcas launch Feb 27th 2008

http://www.microsoft.com/presspass/press/2007/jul07/07-10WPCDay1PartnersPR.mspx

Click here to read more »

Keyed Anonymous types in VB9

Previously I wrote about my opinion on anonymous types and keys.  This post just tells it how it actually is (IOW: yes I would still prefer some way to specify the entire type is For ReadOnly rather than having to prefix every property assignment with Key or to use the constructor with named parameters instead.) […]

Click here to read more »

Change notification with Orcas data model

Jim Wooley recently brought my attention to some “peculiar” code in the LINQ to SQL generated properties.  It rang alarm bells with me for a different reason.. that is the runtime behavior for LINQ to SQL classes will be different in VB than it is in C#. The code in question is in the property […]

Click here to read more »

What’s new in June Orcas CTP for VB

Many of the little features are in VB Orcas as of June (no need to wait till Beta 2)   (1)  Lambda functions are in. Dim f = Function(x As Int32) x + 1Dim y = f(2)‘ y now equals 3   (2)  nullable type support This includes declaration of nullable types with ?, and […]

Click here to read more »

Next Page »