Hi there,
we want to use our own buttons to e.g. add a task in UltraGanttView. Therefore it would be useful to call the contextmenu item "InsertTask" within our Button.Click handler.
If we try to call
UltraGanttView1.ContextMenu.MenuItems(0).PerformClick
the ContextMenu property is Nothing. How can we retrieve the ContextMenu without right-clicking?
Regards,
Petra Tenzlinger.
There is no way to programmatically cause the context menu to display. You can, however, use the TasksCollection.Insert method to programmatically insert a task.
Hi Brian,
thank you for your quick answer.
We would prefer this way of adding because we like the behaviour that the focus is on the new task and the name's text is selected.
With TaskCollection.Insert we have to code this behaviour to get consitency with the context menu behaviour.
Petra.