After my post about the first set of insults from the Windows Live team and the Search API samples, it was nice to see some VB samples released. Sadly though they were just the C# samples run through an automated tool. I mean look at this bullshit code from them : Select Case searchFlagsValue Case 0...
Posted to
@ Head
(Weblog)
by
bill
on
03-12-2008
Filed under: VB, Whidbey, Rant, Orcas, VB10, VS2008, CSharp
You probably know that declaring an array in VB, such as : Dim names(9) As String creates an array with 10 elements. As of VB8 you can use the 0 To syntax for the same thing: Dim names(0 To 9) As String I prefer the 0 To syntax as it clearer for those from other languages as well as clearer for me ;...
Paul Vick released some statistics in relation to VB , which for discussion sake I'll repeat here : Visual Basic is the #1 .NET language (as reported by Forrester Research) Visual Basic is the #1 downloaded and #1 registered Express Edition (topping the #2 position by 20%) Visual Basic is the #1...
Posted to
@ Head
(Weblog)
by
bill
on
11-02-2007
Filed under: VB, Life, Whidbey, Rant, Orcas, LINQ, DevCenter, VB10
Recently a fellow MVP pointed out the addition of the TransferRequest method to the HttpServerUtility class. The documentation falsely states it as being .NET 3.0 when in fact the change is made in .NET 3.5 Beta. You'd think stating the file versions would be enough to clear up the matter, which...
Posted to
@ Head
(Weblog)
by
bill
on
06-29-2007
Filed under: VB, Whidbey, Rant, Orcas, LINQ
I just read again today the claim that you should use + for string concatenation in VB. You should NOT. Just because you can doesn't mean you should. VB has the Concatenation operator & as distinct from the + operator. Yes for the most part adding two strings is the same as concatenating them...
The latest from Microsoft's Developer Marketing is hilarious ! Seems some folks at MS have way too much time on their hands… But then again what am I doing watching the videos there ? <g> you have to watch the "Team Call" video, I'm sure we've all been to that meeting ;) http://www.defyallchallenges...
the following is the code for the custom SettingsProvider from Geoff and mine's TechEd 2006 presentation: Option Strict On Option Explicit On Imports System Imports System.Configuration ''' <summary> ''' simple example of a SetitngsProvider that saves each individual setting in it's own file '...
If you click on a button in a toolstrip, such as the save button on a BindingNavigator, the button never gets focus, so the DataGridView never looses focus, so the current changes are not persisted. The first thing you need to do is call EndEdit on the DataGridView. This will apply the cell's changes...
a few weeks ago, I posted a quiz about the syntax low < x < high, which really was a quiz about implicit casting of Booleans. Of course the great Dan Appleman got that one right :) That quiz stemmed from an earlier post , and raised some questions about values of Booleans in general. I plan to...
Sometimes different problems come together to provide a unified solution. Today I think I stumbled across such a thing. Earlier today I noticed a comment post to an old blog entry of mine about how to tell if an assembly is a debug or release build . It was nice to see that Google and my blogged helped...