Working with MAPI Items

While the Outlook objects expose most of the properties of the items they represent, sometime they miss the exact field that you need. In this post I’ll show you the very basics in retrieving information from the MAPI object that your CDO object represent. Assuming that you have an Outlook mail item, you need to … Read more

The Interlocked class

Working with threads and counters can because a really pain if you do not take care. Fortunately for us, .Net supplies us with a couple of methods that can make our life a little bit easier. The class Interlocked, which can be found in System.Thread allows you to increment, decrement, and set the value of … Read more

Prevent changing the state of a CheckBox

Preventing an item in a CheckedListBox or a ListView with CheckBoxed is a really basic requirement when dealing with GUI. The simple and elegant code is for some reason, quite under-sampled. Assuming that you know which item you want to prevent the user from changing, all you have to do is register on the ItemCheck … Read more

Using ComboBox with objects

In most of the cases where you need to use a ComboBox, you need it only so the user will be able to choose between a couple of string values. In the majority of the cases, you’ll have a list of objects that you’ll want the user to choose from, and you’ll have to do … Read more

SharePoint/MOSS Documents Libraries naming policy

When you create a new Documents Library in MOSS, you are asked to provide a title for that Library. The provided title will be later used to define the internal name of the Library, as well as its URL. This is where the problems start. It only makes sense that MOSS allows the user to … Read more

ListViewGroup – only one item per group

As I was working on a new GUI part of the software I’m working on, I needed to allow the user to choose only a single item in each category. I overloaded the ListView control, and override the OnItemCheckmethod. Here’s the result:

Design Patterns Implementation in a Storage Explorer Application

Although a bit old, I found the well-written, interesting article by Breman Sinaga, Design Patterns Implementation in a Storage Explorer Application to be an excellent piece of work. The article discusses several design patterns used in the project, including: The article shows how to incorporate all patterns together into a well-designed, well thought-of tool. Here’s … Read more

DebbugerDisplayAttribute

A little late, I know, but while watching the Channel 9: Scott Nonnenberg – Visualizers in VS 2005 webcast, I’ve learned the beauty of the DebuggerDisplayAttribute. For those of you not familiar with this attribute, it allow you to choose how the tool tips inside the IDE while debugging will look like, and what values … Read more