Month

Your search for 10/2009 returned 4 results.


.NET 101

If you find yourself wanting yourself to share some C# brilliance related to… The difference between Object.Equals() and == How string comparison is an interesting special case Why class instance memory is not necessarily reclaimed when an instance goes out of scope Which of Stream.Close() and Stream.Dispose() should be called (or both) Please ...

Read More


Doing the dishes

While washing all of the coffee cups left in the office sink by others this morning, I was reminded of a lot of code I’ve seen lately. How often do you open up a piece of code in Visual Studio to find something implemented in a completely ad hoc way, or only half done?  Swaths of code commented out, TODOs sprinkled throughout, all sorts of unrelated concerns ...

Read More


Where are the recent items in my Windows 7 jump list?

I just started adding support for the Windows 7 taskbar jumplist to my WPF application, using the excellent .NET wrappers in the Windows API Code Pack. After creating the jump list, file selection via the Windows common file dialogs should automatically cause entries to appear in the Recent section of the jump list. But no.  What's going on? It turns out ...

Read More


Scrolling TextBox in WPF

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 ...

Read More