Tag Archives: C#

Sending Appointments to a BlackBerry

Sending a calendar appointment over the web is usually straight-forward. Most calendar applications understand the iCalendar format and will automatically import the appointment when an iCalendar file is opened (.ics is the common extension for iCalendar files on the Windows … Continue reading

Posted in Tips and Tricks | Tagged , , | Leave a comment

Griddy – WPF Grid Generator

Download Griddy.zip (21 KB) Lately I’ve been using the very good (and free) Paint.net. Although it has a great variety of features, it doesn’t provide layout guides. To solve this problem I’ve created Griddy. Griddy generates an image of a … Continue reading

Posted in Projects | Tagged , | Leave a comment

Smarter Loading Animations in WPF

An example of how to build a loading control that only appears after a delay. Any WPF application will need to handle loading delays gracefully. In most cases this involves showing a loading animation while the user waits for the … Continue reading

Posted in Reference | Tagged , , | Leave a comment

Keyboard Friendly TextBox

Building keyboard-friendly interfaces can be tricky. For screens with multiple fixed-length TextBoxes, users don’t want to constantly press the tab key to move from one TextBox to the next. In addition, when tabbing between TextBoxes it’s reasonable to assume that … Continue reading

Posted in Tips and Tricks | Tagged , , | 1 Comment

Switch Statement Code Snippet

Another Visual Studio tip – a colleague of mine showed me the “switch” code snippet. It automatically builds a complete switch statement with a case for each value in an enumeration. This can really save some time. Here’s an example: … Continue reading

Posted in Tips and Tricks | Tagged , , | 1 Comment

Controller TempData in ASP.NET MVC 3

I found an excellent article today over on Stack Overflow on how to pass arbitrary data between action methods. The solutions posted by Ryan Tofteland and Tomas Lycken both argue for using a feature of controllers I hadn’t come across … Continue reading

Posted in Tips and Tricks | Tagged , , | Leave a comment

Dropdown Lists in MVC 3

I’ve been lucky enough to work full-time with ASP.NET MVC 3 for the past couple of months, and I’ve completely fallen in love. It’s quite a change from WebForms, and it took a while to ‘click’ so I’m putting together … Continue reading

Posted in Tips and Tricks | Tagged , , | 15 Comments