Browse Blog Posts by Tags

Showing related tags and posts for the Blogs application. See all tags in the site
  • VB Quark #7 : Optional Parameters and Dates

    Hopefully you already know VB has full support for Optional parameters, both declaring them and calling them, but did you know you can use Dates as Optional parameters ?    Public   Sub AddNewCustomer(customer As   Customer ,                              ...
    Posted to @ Head by bill on Tue, Nov 8 2011
    Filed under: Filed under: , , , , , , ,
  • Displaying Dates in VS 2010

    From time to time there’s discussion about the way dates are displayed in the Visual Studio IDE for Visual Basic. Typically dates are shown using VB’s date literal syntax of #MM/dd/yyyy# which is the standard US format. For people outside of the USA this can be confusing or ambiguous at times...
    Posted to @ Head by bill on Mon, Nov 7 2011
    Filed under: Filed under: , , , , , , ,
  • VB Quark #6: Date operators

    The DateTime structure in .NET includes custom operators for Date comparisons such as less than, greater than, equal and not equal; but did you know it also includes addition and subtraction operators ?  There’s two subtraction operators and one addition operator defined inside DateTime: date =...
    Posted to @ Head by bill on Wed, Oct 26 2011
    Filed under: Filed under: , , , , ,
  • VB Quark #5: C is for Char

    Can you pick the problem with this code ? :       Dim currentChar As   Char       For i = 0 To largenumber          currentChar = getChar(i)          If currentChar ...
    Posted to @ Head by bill on Thu, Sep 29 2011
    Filed under: Filed under: , , , , ,
  • VB Quark #4: type literals

    Do you know why you can’t write this code in VB:    Dim x = 123456789.0123456789 Answer: The IDE won’t let you If you try to write that code the IDE will truncate the number, giving :    Dim x = 123456789.01234567 To include all the decimal places you need to be using the Decimal...
    Posted to @ Head by bill on Mon, Sep 26 2011
    Filed under: Filed under: , , , , ,
  • VB Quark #3: operator differences in VB/C#

    Can you spot the problem with this code:    < Extension ()>    Public   Function ToColor(argb As   UInteger ) As   Color       Return   Color .FromArgb( _                      ...
    Posted to @ Head by bill on Sun, Sep 25 2011
    Filed under: Filed under: , , , , , , , ,
  • VB Quark #2: compiler directives and constants

    Building upon VB Quark #1 , did you know you can use compiler directives alongside expressions in constants ? #If CONFIG = "Debug"   Then    Const path As String = "Z:\mydebug.sdf" #Else    Const path As   String = "|DataDirectory|\Database1.sdf"...
    Posted to @ Head by bill on Fri, Sep 23 2011
    Filed under: Filed under: , , , , ,
  • VB Quark #1: constant expressions

    This quark is more of a did ya know quark about constant expressions in VB. You probably know you can declare a constant expression such :    Const appName As   String = "My Really Cool App" But did you know you can also do operations in constants ? Rather than calculate the...
    Posted to @ Head by bill on Fri, Sep 23 2011
    Filed under: Filed under: , , , , ,
  • VB Windows Phone Toolkit Aug 11 sample

    The Silverlight Windows Phone Toolkit August 2011 (7.1 SDK) doesn't contain a working VB sample.  If you try to load the VB sample that does ship, you’ll get hundreds of errors.  So I put together the VB sample that should have shipped. Download the VB Windows Phone Toolkit samples Enjoy...
    Posted to @ Head by bill on Fri, Aug 19 2011
    Filed under: Filed under: , , , , , , , ,
  • Remember variant ?

    Cory is continuing his posts about VB10 differences from VB6 . His latest posts is on variants . Variants were/are basically a structure that contains a variant type enumeration and either the variable’s data value or a pointer to the variable data. In pseudo code it basically looks like: Structure Variant...
    Posted to @ Head by bill on Wed, Jul 27 2011
    Filed under: Filed under: , , , , ,
  • Windows Phone 7 : 6 months later

    I’ve had my HTC Mozart for about 6 months now, so I thought I’d give an update of my thoughts about it and Windows Phone 7. The first set of WP7 updates were really slow to roll-out here in Australia to Telstra: Telstra was the 2nd last mobile operator to deliver the update in the world. Given that the...
    Posted to @ Head by bill on Fri, Jun 17 2011
    Filed under: Filed under: , , , , ,
  • Memory mapped files and pointers… or not ???

    Last week I was in Seattle for the MVP summit. Whilst there I saw a brief presentation from Joe Kunk on Memory Mapped files in .NET 4. I suggested to Joe that perhaps pointers might give a performance boost. Then someone from Microsoft ( not to mention names ) suggested if that were the case, it might...
    Posted to @ Head by bill on Wed, Mar 9 2011
    Filed under: Filed under: , , , , , ,
  • WP7 copy and paste is here !

    In the emulator in the tools SDK that is   Still waiting on the actual phone update, but for developers the tools update is now available from: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=49b9d0c5-6597-4313-912a-f0cca9c7d277&displaylang=en
    Posted to @ Head by bill on Sat, Feb 5 2011
    Filed under: Filed under: , , , , , ,
  • Reflector and Windows Phone 7

    If you’re like me and like to open reflector from the Visual Studio Tools menu, you’ll probably have noticed that you need to have a different configuration (or list) of assemblies when developing with Windows Phone 7. To make it simple to setup, I’ve attached a configuration file....
    Posted to @ Head by bill on Mon, Nov 15 2010
    Filed under: Filed under: , , , , , , ,
  • Help Library Manager and error 0x80190194

    Yesterday I noticed that the Windows Phone content had been updated online, but my local help library didn’t have the new content. So I thought I’d just open up Help Library Manager and update my local content. Sadly it wasn’t that simple. Help Library Manager would only let me update the entire collection...
    Posted to @ Head by bill on Fri, Nov 12 2010
    Filed under: Filed under: , , , , , , , ,
  • Too many hyperlinks in your XAML ?

    If you are editing XAML code in Visual Studio and seeing a lot of the code underlined as a hyperlink, the problem is you most likely have the “Enable single-click URL navigation” option selected.  It is best if you uncheck that option:
    Posted to @ Head by bill on Wed, Nov 3 2010
    Filed under: Filed under: , , , , , , , ,
  • PDC 2010 Sessions

    You can view PDC 2010 sessions online at microsoftpdc.com , but you can also download sessions to view later or copy over to your windows 7 phone The sessions info is all online in one nice big XML file : http://videoak.microsoftpdc.com/pdc_schedule/Schedule.xml Just scroll down or search for <DownloadableContent>...
    Posted to @ Head by bill on Tue, Nov 2 2010
    Filed under: Filed under: , , , , , , , ,
  • LightSwitch

    So with the recent hype about “KittyHawk”, comes the product: LightSwitch. Jason Sanders has an introducing light switch blog entry up now. It looks good/promising.  The name however is terrible. Searching for it with Google will be a needle in a hay stack .
    Posted to @ Head by bill on Tue, Aug 3 2010
    Filed under: Filed under: , , , , , ,
  • Here Kitty, Kitty… KittyHawk

    I was having a quiet coffee this Sunday morning, catching up on some emails, when some strange feline contexts took over my email. The first was a “MEEEEOOOW. LOL” post someone had posted on my facebook page. The next was something about Kitty talk.  Was this the revenge of the LOL Cats ??  ...
    Posted to @ Head by bill on Sat, Jul 31 2010
    Filed under: Filed under: , , , , , ,
  • .NET 4 is on windows update !

    Today I was running windows update on some virtual machines, and noticed that .NET 4 Client Profile is available via windows update.  Seems it was released to windows update in June. For Windows XP the update is optional . For Windows 7 and Vista the update is recommended .  What this basically...
    Posted to @ Head by bill on Tue, Jul 20 2010
    Filed under: Filed under: , , , , , ,
Page 1 of 2 (21 items) 1 2 Next >