I have found many question concerning split buttons, but I need clarification. I am using a Wisej split button. The following code will show a context menu to the bottom left of the button part(left-side of the split button which has button text) of a split button.
private void splitButton1_Click(object sender, EventArgs e)
{
Button btnSender = (Button)sender;
Point ptLowerLeft = new Point(-20, btnSender.Height);
ptLowerLeft = btnSender.PointToScreen(ptLowerLeft);
contextMenu1.Show(ptLowerLeft);
}
I want to know is how to have a context menu show only when the split part (i.e. the small section on the right-side of the split button with an arrow icon) of the split button is clicked and not on the button side.