.Net
Visual Studio Build Progress in the Windows 7 Task Bar: Creating a Small VS 2010 AddIn
Windows 7 introduces a whole bunch of cool features, as I've mentioned here previously. Sometimes the simplest ones are the most effective, however, and there's nothing simpler or more effective than the in-taskbar progress indicator. If you haven't seen this already, when you copy a file in Windows Explorer, download a file using IE, or perform any of a number of similar actions that might take a while to complete, the progress information is displayed in the task bar icon for that application.
Windows 7 Taskbar Progress: This screenshot also illustrates the "Icon and Text" display mode
- Add new comment
- Read more
- 4673 reads
Casting types in .NET
In Java, there's only one way to explicitly cast a variable from one type to another, and that's using the bracket syntax. In .NET (well, C# anyway), there are a couple: the Java-esque bracket syntax and the as keyword. Whilst I have used both frequently in the past, a situation occurred a couple of days ago where I realised I needed to clarify what as did under the hood.
More on Message Passing!
I recently posted a question to Stack Overflow. This is a great developer community site run by Jeff Atwood and Joel Spolsky that's currently in private beta. It's a good mixture of discussion forum, Digg-style ratings' site, and wiki that promises to become a truly invaluable resource once development is complete; it's well on its way already! The idea is that ordinary developers post questions and the community responds, with both questions and answers being voted upon by the community.
I've included my question below to gain the issue a bit of extra exposure. If you have a stackoverflow.com account, please visit my question and post a response there, or vote on the question and any existing answers. Alternatively, please leave a comment on this post with your thoughts.
- 2 comments
- Read more
- 3590 reads
NMock Framework
To aid the testing of my personal finance program, I've been making heavy use of the NMock mocking framework for .NET. This is a cool utility that allows you replace actual code calls with mock code calls, factoring out a lot of complexity of setting up some tests. For example, I first started using it to mock the log4net logging framework rather than creating a new logger for each test/suite and passing that around. More recently, I've found it useful in mocking parts of the plug-in framework that are required by the code but not part of the test (such as the preferences' manager, for example).
- 2 comments
- Read more
- 1034 reads
- 1 trackback
.NET Format Strings
.NET format strings rock. These are roughly equivalent to the old-school C-style sprintf() functions, with their %d, etc., symbols. There's some serious power to these strings, however; think PHP's date() function on acid, and for more than just dates.
None of this is likely to be new to all but the greenest of .NET developers (like me), but it's always worth reminding yourself of how great these things are.
- Add new comment
- Read more
- 387 reads
Message Passing 2
As a follow-up to my previous post on message passing in a plug-in framework, I thought I'd post my solution to the problem. Now that I've finally reached a solution, that is...!
[Note: It would be worth reading the first post to get an idea of what I was trying to do. ]
- 2 comments
- Read more
- 711 reads
NAnt Starter Series
Jean-Paul Boodhoo put together a very clear and concise introduction to NAnt back in 2006. It's helped me no end converting a couple of my projects from Visual Studio Ctrl+Shift+B/MSBuild to NAnt today; I heartily recommend it as an introduction to NAnt. You can find the index to the series at http://blog.jpboodhoo.com/NAntStarterSeries.aspx.
- Add new comment
- Read more
- 664 reads


