How to display context menu of a docked control at a specified point?

9 Dec 20191 minute to read

This can be done using ShowMenu method.

Method Description
ShowMenu Show's the docking caption context menu at the specified point (Pt). The parameters are,


- Indicates the control for which docking/floating state is been queried.


- Indicates the location of the menu to be displayed.
private void button1_Click(object sender, EventArgs e)


this.dockingManager1.ShowMenu(this.listBox1, new Point(100,100)); 

Private Sub button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)

Me.dockingManager1.ShowMenu(Me.listBox1, New Point(100,100))

End Sub