Author Archives: Ben

WinForm stuck on a disconnected monitor

Recently, I had a customer report that the application I am writing got stuck off screen, and he couldn’t get at it. This happened by moving the application to his external monitor and then minimizing. After disconnecting the monitor, he … Continue reading

Posted in WinForms | Comments Off on WinForm stuck on a disconnected monitor

P2P with WCF

A couple posts ago I was doing some experimentation with TCPClient and TCPServer. The bulk of my testing was done by creating a simple chat application. After that I decided I wanted to figure out how to do the same … Continue reading

Posted in .Net, C#, Networking, WCF | Comments Off on P2P with WCF

Windows 7 API Code Pack

Jay Wren told me yesterday about the Windows 7 managed API code pack that Microsoft has released. I spent a little bit of time looking at it today, and I’ve got to say that I’m pretty impressed. It provides interop … Continue reading

Posted in .Net, Windows 7 | Comments Off on Windows 7 API Code Pack

A Small TCP Experiment

I’m going to be writing some networking code for a personal project, so I spent some time learning to use TcpClient/TcpListener. After starting to learn them, I thought it might be interesting if I could send a delegate across the … Continue reading

Posted in .Net, C#, Networking | Comments Off on A Small TCP Experiment

Writing to a CD

In one of my projects I needed to be able to write data to a CD. I found a great article at code guru that helped me out:http://www.codeguru.com/csharp/.net/net_general/tipstricks/article.php/c15201 However, I did find one bug in his code. On page three … Continue reading

Posted in C# | Comments Off on Writing to a CD

When to use Linq: for/foreach

Many people around the office love Linq, but I haven’t used it much and hadn’t heard about it until I started here. I have written a few Linq queries (Linq to Objects) but don’t use them extensively in my coding. … Continue reading

Posted in C#, Linq | 1 Comment

Bitmap from Texture2D

I’m writing a map editor for a 2D XNA game and wanted to use a lot of the same code for displaying the map in the editor and in the actual game.  However, I wanted the ease of use and … Continue reading

Posted in WinForms, XNA | 2 Comments

7

Well, I’m glad to see that Windows 7 has the blue screen of death that we are all familiar with.  At least some things don’t change, ever. I was very excited yesterday to get Windows 7 installed on my system. … Continue reading

Posted in BSOD, Windows 7 | Comments Off on 7

CodeMash 2009

Last week I went to my first CodeMash.  It was a lot of fun and quite exhausting.  Since I didn’t have any experience with functional languages before CodeMash I decided to sit in on the talks about Erlang and the … Continue reading

Posted in CodeMash, Conferences | Comments Off on CodeMash 2009

Validation controls are pretty cool

I’ve been reading an ASP.Net book lately and just got to the information about Validation controls.  These seem like a pretty sweet way to get a lot done with very little code.  For example, say a that I want a … Continue reading

Posted in ASP.Net, Web programming | Comments Off on Validation controls are pretty cool