Browse by Tags
All Tags »
VB »
DevCenter (
RSS)
When working with VB9 you may get this cryptic error : XML namespace prefix 'xmlns' is not defined If you are using only default namespaces you can fix this by including a definition for the xmlns as an Import statement or as an xmlns attribute...
If you use XML literals in your code, adding one to another: Dim e1 = <a:books></a:books> dim e2 = <a:book></a:book> e1.Add(e2) You will have the xmlns declaration repeated in each of the elements, when really it is only needed...
If you install VS 2008 on a machine that has VS 2005 on it, you'll be prompted to let VS 2008 import as many of your settings from 2005 as possible. Generally this is a good thing, but you might run into some issues with code snippets as you might...
In VB9, there's a bug when using XML literals with any type member that is a protected keyword. For example, given the following psuedo types, Class Doc Public Property [Imports]() As List( Of DocImports) End Class Class DocImports Public Property...
Just spotted it on MSDN subscriber downloads. Enjoy :)
I've finally given the Snippet Editor a major make over including a new look. To go with this, I've given it a new home on my web site: http://billmccarthy.com/Projects/Snippet_Editor And I've added a Snippets category to this blog for feedback...
In playing with Windows.Forms in VS 2008, I got the same old error I use to get in VS 2005 sometimes: Type must be a type provided by the runtime. Parameter name: type The good news is it looks so much prettier in VS 2008. It's not fixed, but look...
I've updated the Snippet editor to work with Visual Studio 2008 and 2005 releases. Note this release requires .NET 3.5. Changes/fixes: Added 2008 product range to the list of products Fixed replacement of the install root variable for Visual Studio...
I recall almost four years ago to this day, I was at the 2003 PDC in LA. On the last day of the conference, the head architects of different .NET languages got together and talked about language directions, generics and some of the "VS 2005"...
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...
I've been rummaging through the Windows Vista User Interface Experience Guidelines draft, a 33 MB pdf file , and it poses some interesting questions around warning and exception dialog messages. Now apparently it is not OK to present the user with...
I got an interesting email today, which, to paraphrase, said: I would like a syntax where I can say “an XElement that follows this XSD" This question actually digs deep into the issue of strong typing versus dynamic typing and what it really is we...
Of programming languages, VB has in many ways had a checkered history mainly due to the changes from VB6 to VB7 (VB.NET). I remember clearly the change from "Wend" to "End While". Some folks claimed that was "gratuitous"...
31. Templates for anonymous types It'd be nice if you could change the template used for anonymous types, such as to include INotifyPropertyChanged or other functionality. If you add a template to your project, you could then specify which template...
Today I was only going to add one, item, #29, but in writing the samples for it two more items came to mind. One however was an IDE thing more than a language thing, so just 2 items for the list today :) 29. Embrace declarative style coding VB led the...
I've still got some more thoughts, but these are beginning to be big items, so I'm only touching on two more today Backing fields nested inside Properties Public Property Name() As String Dim m_Name As String Get Return m_Name End Get Set ( ByVal...
Standardization IOSO or ECMA standardization, to allow fully open development and meet organizational and governmental requirements for open standards. At present part of the language is under Patent protection, making it unclear for example if a third...
Expression trees allow you to walk through all the information about an expression. So you can use this to create a NameOf function similar to the one I outlined in my post on VB 10 thoughts (part 5) <Extension()> _ Function NameOf( Of T1)( ByVal...
a NameOf operator you could use this similar to TypeOf, but to get the name of a class or a method or property etc. NameOf could be used : - without any operand to return the name of the current method/property, e.g NameOf() - using an object reference...
still teasing out thoughts from the cobwebs Date literals today in VB you can only specify date literals in the format of #MM/dd/yyyy# That's incredibly USA centric. I'd like to input date literals in the form of dd/MM/yyyy, but because that would...
More Posts
Next page »