Anyone who has worked with .NET Compact Framework for sometime will know that the IrDA support is provided by the same - you can write applications that can act as IrDA listeners or clients - basically, do whatever you want using IrDA as long as you are using the .NET Compact Framework.
But, how about using IrDA in regular WinForms applications?
Well, until I just stumbled upon the trick I will just tell you [it's really a no-brainer], one would need to write WinSock based IrDA applications for the regular desktop for the IrDA .NET CF client. But not anymore...
I am in the process of writing one such client server application based on IrDA and try out .NET Framework 2.0 capabilities and needed to use IrDA in WinForms - and didn't want to use WinSock. After much search on Google and seeing the similar question being asked by many, I finally stumbled upon the following solution that is working for me.
In my VS 2005 installation, the Compact Framework SDK assemblies reside at E:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\CompactFramework\WindowsCE. This folder also contains System.Net.IrDA.dll assembly. All you have to do in your WinForms application is to place a reference to this assembly and the magic happens!
What say :) ?