SharePoint Associated groups

When you create a new sub-site in SharePoint, and choose the Use Unique Permissions option, three groups are created at the site-collection level: Owners, Members Visitors. These groups are associated to the sub-site that you’ve just created. But what does associated actually mean? First, I misled you a bit – the names of the groups … Read more

SqlCE doesn’t support TRUNCATE TABLE

Not long ago, I modified a piece of code to use SqlCE as a data store. The older code was using OleDb to access an MS Access file. As part of the modifications, our team did a general overview of much of the data access code. We did many changes, more than I can even … Read more

Connecting to Documentum using .Net

I’ve spoke in an earlier post about working with Documentum in .Net. In this post, I’ll show you how to connect to a DocBase, and get the list of cabinets. The following code will connect to a DocBase. It assumes that you have a Username, Password and DocBase variables declared that contain valid information: Now, … Read more

Retrieving extended permissions in Documentum with .Net

Following version 5 of the Documentum Content Server, security entities can have extended permissions on items. Those extended permissions include: Execute Procedure, Change Location, Change State, Change Permission and Change Ownership. In order to retrieve those permissions by code, it is required to manually check for those permissions. Assuming that you have the object ID … Read more

Retrieving a list of available Documentum DocBases

While adding support for EMC Documentum to the Tzunami Deployer, our SharePoint migration tool, I needed to allow the user to enter the name of a DocBase to connect to. I wanted an interface that is a bit more than just a TextBox where the user can enter the DocBase name. I ended up using … Read more

Updating GUI from different threads – Part 2

As part of my work at Tzunami Inc., I’m working on migrating our product Deployer – a SharePoint migration tool – from .Net 1.1 to .Net 2.0 and Visual Studio 2005. One of the first things we’ve encountered was the managed debugging assistants (MDA). I’ll talk about the MDAs in a later entry, but for … Read more

Populating a TreeView with Outlook folders

In this post I will demonstrate how to populate a TreeView with the different Outlook folders. We’ll be using the Outlook Object Model (OOM) to retrieve the folder and some basic information about them. The code itself is well documented, so I’ll not explain it.

Updating GUI from different threads

Even the smallest thing, when thought upfront, can help you go a long way. Whenever you create an application that is more that two forms thrown together, and that does a little bit more than just saying “Hello world”, you’ll encounter a point where you’ll want to use threads. So if you’re going to reach … Read more

Transparent Click-thru windows

It is often useful to provide the user with information on the screen, without interfering his work. Usually, you would just create a window with a somewhat lower opacity, allowing the user to see what’s beneath your window. However, this window will still receive all the normal windows events, and mostly, the user’s mouse clicks.To … Read more

Filtering Win32 messages of a form

I’ve recently came across a nice post on C# Frequently Asked Questions blog. In the post, they’ve shown a way to filter out, or (pre)process Win32 messages of a form. Let’s have a look at the code, then we’ll go through it. And in the form itself: As you can see, we’ve started by creating … Read more

Unbound items in a bound ComboBox

Introduction It is sometimes necessary to add items to a bound ComboBox that will appear at the beginning of the drop-down list. If you ever tried to add items to a ComboBox that was bound, you probably know that an ArgumentException is thrown, saying that Cannot modify the Items collection when the DataSource property is … Read more

Fading form while moving

The different between a nice application and an exellent one, is many time only in the small details. How much did the developers really put into it? How much they thought about every detail?The following code is nothing more than an eye-candy, but we all know that it’s those simple things, that take seconds to … Read more