How can I help you?
How to display context menu of a docked control at a specified point?
4 Feb 20251 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, Ctrl - Indicates the control for which docking/floating state is been queried.Pt - 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