How can I prevent moving bars to specified items or changing the parent item of a bar?
The BarParentChange event is fired every time the bar’s parent is changing during the drag and drop operation. The Cancel parameter ( byref ) of the BarParentChange event can be changed to True or False, if the NewItem parameter indicates a good new parent for your bar. For instance, you can cancel moving the bar to an item that contains no parent items, as the one that could display summary bars, and so on.