[quote="DHW"]1. Change item.CommandName dynamically based on the right-clicked node
and CFlyMenuItem members
Currently you can change Text and disable/enable menu items.
Also, I do not completely get why you need to change CommandName?
[quote="DHW"]2. Add/remove items dynamically based on the right-clicked node
Does the enable/disable menu items is what can help.
See the http://www.9rays.net/asp.net_2/treeview/Demo_Office2003.aspx demo,
it enables/disable menu items depending on a context node.
Alternatively, you can add several context menus to the page with different items.