Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can I prevent moving bars to specified items or changing the parent item of a bar?

0
Posted

How can I prevent moving bars to specified items or changing the parent item of a bar?

0

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.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.