Got the beginnings of the context menu for the tree view working and imported a useful project from MSDN magazine.