Browse by Tags
All Tags »
.NET 4.0 »
VB10 (
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...
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...
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...
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...
Windows Phone 7 comes with about 57 different input scopes you can use (there’s actually 62 or so, but 5 of them give an exception when loaded). The two most important scopes are Text and TelephoneNumber. TelephoneNumber gives you the numeric keypad...
As much as I like Windows Phone 7, there’s some really key areas that are missing. The following is my xmas wish list : 1. Give me my compass back. When I bought my HTC Mozart, I did so with the understanding it had a gps and compass. On the...
Wow, seems Windows Phone 7 supports COM inside ! Chris Walsh has been doing some “investigating” into the inners of Windows Phone 7 . Interesting, but also totally not usable in any production application.
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...
More Posts
Next page »