Scrolling TextBox in WPF

Posted on October 1, 2009

If you put a TextBox inside a ScrollViewer, the TextBox will take as much width as it needs, even if you set TextWrapping to Wrap.  That means that a long line of text will just stretch out to the right, beyond the right edge of the ScrollViewer, instead of wrapping. Fortunately, you can bind the Width of the TextBox to the ScrollViewer ViewportWidth.  This makes the text wrap at the right edge of the ScrollViewer.  If you hide the ...

Read More


code2plan filters

Posted on March 30, 2009

Yesterday Denis and I released a new version of code2plan that includes a couple of long-awaited features: filter and search. We've had filters for some time, but they weren't fully functional.  Our new release supports some great new filtering capabilities: Filters are persistent.  You can save your filters by name, and they appear in the filters popup for the appropriate work items page.  A filter is always associated with a ...

Read More


code2plan Beta Release

Posted on January 7, 2009

As a few of you might have seen, my side project code2plan is finally in beta. code2plan is a free agile software project management application that is available as a Visual Studio 2008 add-in, and also as a standalone Windows desktop application.  Both versions have the same feature set, and both are WPF applications.  The program supports single users as well as supporting a shared database for teams.  You can work offline (no network ...

Read More


Using SQL Server 2008 Express as a default instance

Posted on September 13, 2008

Time to upgrade!  After uninstalling SQL Server 2005, I decided that I would try running only the Express version of SQL Server 2008 on my laptop.  After installing, I found that running SQLCMD against the (local) server no longer worked.  For example, sqlcmd -s (local) -i SomeScript.sql Resulted in this error: HResult 0x2, Level 16, State 1 Named Pipes Provider: Could not open a connection to SQL Server [2]. Sqlcmd: Error: Microsoft ...

Read More


Architecture is important

Posted on August 6, 2008

And not just in software!  But like design in buildings and furniture, software architecture is more than putting parts together so that everything works.  Software should be beautiful, classy and fun.  Ted Kamp and Mies Van Der Rohe obviously get that. http://www.youtube.com/watch?feature=player_embedded&v=x5Ujve7PuWk

Read More