Posted by Ben on November 16, 2009
When WPF first shipped, there was a noticeable lack of certain controls we’ve become used to in Win32 and WinForms: Calendar, DateTimePicker, and NumericUpDown. WPF 4 adds Calendar and DatePicker, but not anything for numeric entry. For my solution I wanted something that behaved very similarly to the WinForms NumericUpdown control. Some of the specifications: [...]
Posted by Ben on January 29, 2009
I’ve recently been learning WPF. This is a huge topic that is uncontainable by any single book, tutorial, or web-site. The complexity and breadth of this framework is nearly oppressive, but the results are incredible. Or rather, I should say, potentially incredible. My first book, C# 4.0 How-To is now shipping! If you like tips [...]
Posted by Ben on November 29, 2008
NDepend is a tool I’d heard about for years, but had yet to really dive into recently. Thanks to the good folks developing it, I was able to try out a copy and have been analyzing my own projects with it. Here’s a brief run-down of my initial experience with it. Installation There is no [...]
Posted by Ben on November 25, 2008
Sara Ford has an awesome tip for Visual Studio on how to customize the formatting of search results.
Posted by Ben on September 13, 2008
I’ve been working on a project using Visual Studio Tools for Office 2008 (VSTO) and at one point I needed to get the colors for categories in Outlook 2007. There are actually 3 colors, and they are returned as uint’s–why the .Net wrappers don’t convert to colors for you, I don’t know (to avoid linking [...]
Posted by Ben on July 26, 2008
If you are having problems printing from Internet Explorer 7 under Windows Vista, check to see if you have AVG 8.0 installed. If so, get the latest version from http://free.grisoft.com. I did have build 8.0.101 and upgraded to build 8.0.138–everything works fine now. I’ve also seen reports that it could be an error while running [...]
Posted by Ben on July 9, 2008
If you are following the instructions to build log4cxx 0.10 in Visual Studio 2005, and you have the Windows Platform SDK v6.0 installed, you may get errors compiling multicast.c in the apr project. I found the solution, and it’s pretty easy. Open up multicast.c and edit the lines: 136: #if MCAST_JOIN_SOURCE_GROUP 148: #if MCAST_JOIN_SOURCE_GROUP to [...]
Posted by Ben on May 22, 2008
Put them on any drive other than C:\ (actually, any drive that you don’t heavily use at the same time) Don Roessler discusses how to reduce the size of your virtual hard disk (.vhd) files, and some other tips. Scott Hanselman talks about disabling unneeded services Consider Virtual Server instead (not for all users) Always [...]
Posted by Ben on May 12, 2008
You’ve installed Visual Studio 2005 on Vista and dutifully changed it to run as administrator, like you’re supposed to. And then… Problem: Visual Studio 2005 solutions no longer open when you double-click them in Windows Vista. In fact, when you double-click nothing happens. Solution: Change them to open with Visual Studio 2005 directly instead of [...]
Posted by Ben on May 9, 2008
With the acquisition of a Blackberry I wanted to be able to sync both my work and home Outlook setups to the Blackberry (and to each other). I tried a number of free tools (though they aren’t that easy to find) and quickly concluded I would need a better solution. Enter SyncMyCal. It’s easy, it’s [...]