Browse by Tags
All Tags »
VB »
Whidbey (
RSS)
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...
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...
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...
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...
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...
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...
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...
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...
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...
today I updated the open source Exception Helper plugin for Visual Studio 2005. You can view a short screen cast demonstrating it's installation and usage (about 4 minutes) You can download from workspaces.gotdotnet.com/project42
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 ....
A couple of weeks ago, I got an email from Builderau describing how to use snippets in Visual Studio 2005. I was kind of amazed to see that they provided two links to "snippy" editor, but not a single one link to the VB Snippet Editor. That's despite...
Have you ever wanted to display the data connections dialog to your end user ? Well in VS 2005 there's a set of new controls you can use to do it… First add references to the following two assemblies: Microsoft.Data.ConnectionUI Microsoft.Data.ConnectionUI...
Well not really. But it has been interesting to watch the storm in a teacup over personas, the last day or so. What's really weird is the best post I have read on the matter has been by Paul !! ;) I'm not going to go into Scott Belaware's post, but saying...
VB really has a very cool Select Case set of features, features that other languages with their childish switch blocks can only today dream of. For example, did you know you could do this in Vb ? Select Case myAge ' myAge is an Int32 Case 42 'totally...
Trying really hard not to laugh (too much) at Nige's latest mishap , but there is a valuable lesson to be learnt there.. If you don't know the difference between a shovel and a spade you shouldn't be using them ;) (hint that sure looks like a shovel,...
I was just reading another one of Billy's blog entries, but this time I really have to disagree: Billy said : " At first, VB was to be brought into conformity with other languages on how AND and OR clauses are handled in If statements. That is, given...
since Scott said such nice things about my last post on closures , I thought I'd add some quick references from the language spec I stumbled upon today: 11.4.2 Parenthesized Expressions A parenthesized expression consists of an expression enclosed in...
In my previous blog posting I talked briefly about the + operator, and hopefully people realized that perhaps for string concatenation they should use the & operator. So I thought it probably best to also discuss the & operator in excruciating...
I was reading Billy Hollis's blog entry about strict typing and saw the examples of the use of the + operator with late bound code. Go have a look, it is kind of fun to see how many you get right :) Oh, and if you are wondering how to work them out the...
More Posts
Next page »