<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:thr='http://purl.org/syndication/thread/1.0' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-19732699</atom:id><lastBuildDate>Thu, 29 Apr 2010 00:58:30 +0000</lastBuildDate><title>PJ on Development</title><description>Thoughts and babbling about software development.
Visual Basic, .NET platform, web, etc.</description><link>http://pjondevelopment.50webs.com/blog/</link><managingEditor>noreply@blogger.com (Paulo Santos)</managingEditor><generator>Blogger</generator><openSearch:totalResults>120</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-6321142475062914748</guid><pubDate>Thu, 29 Apr 2010 00:58:00 +0000</pubDate><atom:updated>2010-04-28T21:58:30.369-03:00</atom:updated><title>This blog will be moving.</title><atom:summary type='text'>As I have posted earlier, this blog will be moving to a new address.

It should redirect automatically to the new address from May 1st, 2010.</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/04/this-blog-will-be-moving.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-9101681139625542180</guid><pubDate>Wed, 31 Mar 2010 15:24:00 +0000</pubDate><atom:updated>2010-03-31T12:24:14.359-03:00</atom:updated><title>Where C# fails, VB delivers.</title><atom:summary type='text'>Recently I've came across a strange behavior that took me some thinking to work around.

As you may know, my language of choice has been VB for as long as I can remember. However, I, like any good developer, can work just as good in C#. Really, it's no biggie.

Anyway, what I'm talking about here is dynamic type resolution.

For instance let's say we have the following VB program:

Module Program</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/03/where-c-fails-vb-delivers.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-7787084979862045558</guid><pubDate>Mon, 15 Mar 2010 02:36:00 +0000</pubDate><atom:updated>2010-03-14T23:36:06.329-03:00</atom:updated><title>Today is a sad day!</title><atom:summary type='text'>It's almost 11:30 pm, March 14th, 2010 when I've got an email from one of the many newsletters I subscribe. 

The subject of the email was simply "Puppy", and that belies its true content, that for me was kind of a shock.

Joel is retiring from blogging.

I don't know if any of you know but I've began this site, this little corner in the Internet, because of Joel.

I've reading his columns, his </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/03/today-is-sad-day.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-1260728846945442126</guid><pubDate>Thu, 04 Mar 2010 02:21:00 +0000</pubDate><atom:updated>2010-03-03T23:21:31.696-03:00</atom:updated><title>VSTO Differences in VS2010 RC1</title><atom:summary type='text'>Yesterday I restarted working on an Oulook Add-in I'm cooking up for Office 2007 that I began developing in VS2010 Beta 2, and I got pissed when the code that was running quite well, simply gave me compiler errors.

Well apparently there were some changes from Beta 2 to RC 1 regarding the development of Office add-ins.

The main problem, for me, was that the class </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/03/vsto-differences-in-vs2010-rc1.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-4142368962051704691</guid><pubDate>Wed, 03 Mar 2010 12:58:00 +0000</pubDate><atom:updated>2010-03-03T09:58:21.651-03:00</atom:updated><title>Building AsmMeta - follow up</title><atom:summary type='text'>A couple days ago I've written about the error I was getting when building an Windows Mobile control with design time capabilities. What I forgot to write about was the solution for the problem:

The problem occurred because in one of my classes was inheriting from a ReadOnlyCollection and this is not supported by the genasm.

As it's stated in this Microsoft Forum Thread.

So to work around this</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/03/building-asmmeta-follow-up.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-7122632350457477696</guid><pubDate>Thu, 25 Feb 2010 03:42:00 +0000</pubDate><atom:updated>2010-02-25T00:59:53.793-03:00</atom:updated><title>Discoveries in Windows Mobile - Part 3</title><atom:summary type='text'>I've found in a russian site the meaning of all those colors I've posted about yesterday.

Here they are:


Color#Description
0 COLOR_ALERT 
Obsolete.
1 COLOR_ACCENTTEXT 
Obsolete. 
2 COLOR_CALOFFHOURS 
Obsolete.
3 COLOR_CALONHOURS 
Obsolete.
4 COLOR_TODAYTEXT 
Today screen text color. 
5 COLOR_STARTICONBACKGROUND 
Base color for title bar and soft keys 
Obs.:Windows Mobile 6 Professional and </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/discoveries-in-windows-mobile-part-3.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-5646656071859542614</guid><pubDate>Wed, 24 Feb 2010 04:21:00 +0000</pubDate><atom:updated>2010-02-24T01:21:27.985-03:00</atom:updated><title>Discoveries in Windows Mobile - Part 2</title><atom:summary type='text'>After removing every possible color information from the WM65, I started adding some color to see what affected what.

The first element I tried was placing back the SHColor value in the [HKEY_LOCAL_MACHINE\Software\Microsoft\Color] registry key.

I didn't have enough time today to play with the colors, so I simply put back the default base color from WM65, which are:


FF,00,00,00,00,00,00,00,DD</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/discoveries-in-windows-mobile-part-2.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-1108289635288185996</guid><pubDate>Tue, 23 Feb 2010 04:45:00 +0000</pubDate><atom:updated>2010-02-23T01:45:41.983-03:00</atom:updated><title>Discoveries in Windows Mobile</title><atom:summary type='text'>Currently I'm in the developing a new personal project a Theme Creator for Windows Mobile. Yes I know there are a lot out there, but I'm doing this more because the fun of it rather than the product itself. And in the mean time, trying to discover a few things in the Windows Mobile platform.

But on with the discoveries.

The first thing I wanted to know was what was a WM6.5 without any theme, </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/discoveries-in-windows-mobile.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-7819403713708853826</guid><pubDate>Mon, 15 Feb 2010 01:47:00 +0000</pubDate><atom:updated>2010-02-15T00:18:25.153-02:00</atom:updated><title>Build Asmmeta failing because it's unable to get a reference to an object.</title><atom:summary type='text'>Today I was working with some Windows Mobile project and that required me to add some XMTA files and everything was working just fine until I add a new XMTA file.

When I hit the build button, the build failed with the following message:

There was an error finalizing type . Object reference not set to an instance of an object.
I've spent the last hour searching over the Net to ind a solution. </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/build-asmmeta-failing-because-its.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-9137284770214257024</guid><pubDate>Fri, 05 Feb 2010 22:49:00 +0000</pubDate><atom:updated>2010-02-05T20:58:37.117-02:00</atom:updated><title>Using MSBuild Community Tasks unobstrusivelly</title><atom:summary type='text'>If you ever use any of the MSBuild Community Tasks (MSBCT) when building a project in any of the Visual Studio version since 2005, you may have noticed that when you first load a project that uses this tasks, a Security Warning Dialog is displayed.Although it occurs only once or twice, it can be very annoying if you handle several projects.So, reading the page on MSDN, I've added the MSBCT as </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/using-msbuild-community-tasks.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-6987169914561509472</guid><pubDate>Wed, 03 Feb 2010 17:56:00 +0000</pubDate><atom:updated>2010-02-03T16:06:22.063-02:00</atom:updated><title>Why shadowing properties and methods is NOT a good thing!</title><atom:summary type='text'>I know it's old news but it's never too much to add emphasis on this:Thou SHALL NOT shadow properties or methods.And heres why.Consider the following classes:Class Class1    Property BaseProperty = " Base Property "    Overridable Property OverridableProperty = " Overridable Property "End ClassClass Class2    Inherits Class1    Shadows Property BaseProperty = " Shadow Property "    Overrides </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/why-shadowing-properties-and-methods-is.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-2576504747880273862</guid><pubDate>Tue, 02 Feb 2010 21:25:00 +0000</pubDate><atom:updated>2010-02-02T19:31:02.125-02:00</atom:updated><title>This blog (and site) will soon be moving...</title><atom:summary type='text'>Today I've got news that blogger will no longer support publishing posts over FTP, which I use to publish my little corner in the web.Adding to this the fact that I'm starting my own start up company, in a couple of weeks this blog and site will be in a brand new home.</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/02/this-blog-and-site-will-soon-be-moving.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-5613641990742995575</guid><pubDate>Mon, 11 Jan 2010 09:26:00 +0000</pubDate><atom:updated>2010-01-11T08:20:54.713-02:00</atom:updated><title>.NET Framework is a surprise box!!!</title><atom:summary type='text'>Most of the time when I need to get inspiration about how to do something, I turn to the inner bits and bolts of .NET Framework, because I think that there are a few hundred men-years worth of code there, and it does have some insights.But, some times...I was just looking into the Dictionary&lt;TKey, TValue&gt; class when I came across this little bit of code:public virtual void GetObjectData(</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/net-framework-is-surprise-box.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-687218659689250723</guid><pubDate>Sun, 10 Jan 2010 03:56:00 +0000</pubDate><atom:updated>2010-01-10T02:22:59.808-02:00</atom:updated><title>IIS7 Virtual FTP Servers problems and solutions</title><atom:summary type='text'>I know, I know, it's old news. After all IIS7 came out with Vista a couple years back, and with it came the possibility of having multiple virtual FTP servers in the same IIS.But until now I had no idea of this, because, in all honesty, I skipped Windows Vista altogether. I didn't installed it in my box. Went straight from XP to Windows 7.As I have some time in my hands, and after a complete </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/iis7-virtual-ftp-servers-problems-and.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-5027370565330351380</guid><pubDate>Sat, 09 Jan 2010 10:28:00 +0000</pubDate><atom:updated>2010-01-09T09:55:54.516-02:00</atom:updated><title>Windows Experience Index</title><atom:summary type='text'>Two days ago I've got a faulty HDD that was making my computer slow to a craw. Well, I didn't know it back then and I thought it was simply a case of much needed reformat.After a couple of hours battling the Windows 7 install, I discovered the faulty HDD, and as it was an old 60GB that was lingering with no vital data whatsoever, I simply plug it off and the installation went in its merry </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/windows-experience-index.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-7693340831890241050</guid><pubDate>Tue, 05 Jan 2010 10:30:00 +0000</pubDate><atom:updated>2010-01-05T08:33:31.219-02:00</atom:updated><title>I'm perplexed!</title><atom:summary type='text'>I've just received an update email from Microsoft about the Vista Icon bug I have reported.Even though this bug has been lurking in .NET Framework ever since version 2.0, and that I have provided them with a fixed version of their own code, the status was changed to "Won't Fix"What the heck?!</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/im-perplexed.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-3818040866687985520</guid><pubDate>Mon, 04 Jan 2010 11:17:00 +0000</pubDate><atom:updated>2010-01-04T20:31:38.979-02:00</atom:updated><title>Vista Icons in .NET</title><atom:summary type='text'>As I have posted earlier, the .NET Framework has a problem with the 256x256 PNG icons that were introduced with Windows Vista.I posted a bug report on Microsoft Connect explaining my findings and pointing them to my blog. They kindly mailed me earlier today that they were able to reproduce the behavior and are redirecting to the appropriated team.I hope this time they will fix it, as I have done </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/vista-icons-in-net.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-387915979068626203</guid><pubDate>Sun, 03 Jan 2010 14:36:00 +0000</pubDate><atom:updated>2010-01-03T12:49:34.927-02:00</atom:updated><title>Message to Microsoft</title><atom:summary type='text'>As reported by several people, the TypeConverter base class is broken. The IsValid function ALWAYS returns true, unless overridden by a derived class.I understand that changing the behavior of the IsValid function would be a breaking change, but as the TypeConverter base class DOES NOT KNOW IF A VALUE IS VALID OR NOT, it should always return FALSE!!That's the most logical approach. I believe that</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/message-to-microsoft.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-724260968997650951</guid><pubDate>Sun, 03 Jan 2010 14:17:00 +0000</pubDate><atom:updated>2010-01-03T12:17:39.350-02:00</atom:updated><title>TypeConverter class is broken!</title><atom:summary type='text'>Well, sort of.I was browsing the Connect site and got a glimpse of this reported bug.Digging a bit in the Framework I discovered that EVERY TypeConverter based class that does not override the IsValid function will always return TRUE.The bug resides in the base TypeConverter class that has the following code:public virtual bool IsValid(ITypeDescriptorContext context, object value){    return true</atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/typeconverter-class-is-broken.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-836176848522079220</guid><pubDate>Sat, 02 Jan 2010 08:44:00 +0000</pubDate><atom:updated>2010-01-02T07:02:38.587-02:00</atom:updated><title>EventHandlers in VB: How to pass them around.</title><atom:summary type='text'>I was implementing an special INotifyCollectionChanged when I needed to know if the instance had event handlers attached.After a little bit of searching, I took a page out of the ObservableCollecion(Of T) in order to do it.In order to detect if YOUR class has event handlers attached, you need to create a Custom Event. Something like this:Private __MyEventHandler as EventHandler  Public Custom </atom:summary><link>http://pjondevelopment.50webs.com/blog/2010/01/eventhandlers-in-vb-how-to-pass-them.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-1307978175414289941</guid><pubDate>Fri, 01 Jan 2010 01:56:00 +0000</pubDate><atom:updated>2009-12-31T23:59:28.738-02:00</atom:updated><title>Happy New Year!!!</title><atom:summary type='text'></atom:summary><link>http://pjondevelopment.50webs.com/blog/2009/12/happy-new-year.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-3936499616056060170</guid><pubDate>Thu, 31 Dec 2009 00:31:00 +0000</pubDate><atom:updated>2009-12-30T22:42:54.083-02:00</atom:updated><title>Replacing Notepad with Notepad++. The automated way!</title><atom:summary type='text'>Although I'm a veteran when it come to software development, I'm kinda old-fashioned when it comes to text editors.Yep! I kinda like the plain old Notepad! With all its (lack of) features.But even I have to admit that Notepad++ is a very good software when it comes to editing text files.Right at the download page there are instructions on how to replace the stock notepad, with the Notepad++.What </atom:summary><link>http://pjondevelopment.50webs.com/blog/2009/12/replacing-notepad-with-notepad.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-2875863087551087390</guid><pubDate>Wed, 30 Dec 2009 14:33:00 +0000</pubDate><atom:updated>2009-12-30T12:35:42.697-02:00</atom:updated><title>Tips are always good...</title><atom:summary type='text'>If you ever needed to create a BAT file a little more complex and got stuck at some point, I'd recommend a site named DosTips. They have tons of tips and BAT code snippets to use and get inspired by.</atom:summary><link>http://pjondevelopment.50webs.com/blog/2009/12/tips-are-always-good.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-3968170831075497831</guid><pubDate>Mon, 28 Dec 2009 04:05:00 +0000</pubDate><atom:updated>2010-01-01T22:40:58.646-02:00</atom:updated><title>Icons in .NET. Why is so difficult?</title><atom:summary type='text'>Once more I find myself needing to use icons in .NET.A quick search in Google shows a plethora of questions and workarounds to use icons in .NET. From simple calls to Win32 API to a whole library written from scratch.Let's say you have the following code:Dim ico As New Icon("file.ico", 16, 16)That would load an 16x16 icon from the specified "file.ico", and if you use this icon, chances are that </atom:summary><link>http://pjondevelopment.50webs.com/blog/2009/12/icons-in-net-why-is-so-difficult.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-19732699.post-3701071395775864253</guid><pubDate>Fri, 25 Dec 2009 04:34:00 +0000</pubDate><atom:updated>2009-12-25T02:36:15.363-02:00</atom:updated><title>Happy Holidays</title><atom:summary type='text'></atom:summary><link>http://pjondevelopment.50webs.com/blog/2009/12/happy-holidays.html</link><author>noreply@blogger.com (Paulo Santos)</author><thr:total>0</thr:total></item></channel></rss>