Communication between two programs will work irrespective of the UI technology used, one could be a console app (usually the server when testing) and the other can be any technology (WiForms, WPF, WEB etc.).
For an object orientated TCP library take a look at my article
WCF Killer[
^]