private void btnButton_Click(object sender, EventArgs e)
{
ContextMenuStrip buttonMenu = new ContextMenuStrip();
buttonMenu.Items.Clear();
buttonMenu.Items.Add("Item A");
buttonMenu.Items.Add("Item B");
buttonMenu.Items.Add("Item C");
buttonMenu.Show(btnButton, new Point(0, btnButton.Height));
}
The coding above works fine if you place a button (click event) on a WinForm. Just click on a button and a menu is displayed.
However, if you place a button on a "user control" and click on it. The menu will be displayed with TWO clicks. Yes, the first click doesn't show up the menu, the second and third and so on.... works normally.
I do not understand the reason behind. If anyone knows how to fix this issue?