Browse by Tags

All Tags » .NET 4.0 » .NET (RSS)
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 , ...
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...
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...
Can you pick the problem with this code ? :       Dim currentChar As   Char       For i = 0 To largenumber          currentChar = getChar(i)         ...
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...
Can you spot the problem with this code:    < Extension ()>    Public   Function ToColor(argb As   UInteger ) As   Color       Return   Color .FromArgb( _                      ...
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  ...
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...
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....
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...
with no comments
Filed under: , , , , ,
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...
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...
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...
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:
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...
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...
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. ...
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...
I’ve been testing out upgrading some VS 2008 applications to 2010, but hit some MAJOR issues with projects that use Microsoft Reporting. I had reports that usually took seconds now take over a minute; and navigating via the document map was painfully...