I am trying to create my own menu (and practice a little c#) and I am almost done. I have the menu and the context menu that will be shown created. I also have the context menu showing at the correct time.
My problem comes when the menu disappears when you try to move your mouse over it. Only about 75% of the time though. The code below is the only spot where the context menu is hidden. I have uploaded the full project here.
private void this_MouseEnter(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine("Enter");
isOverContextMenu = true;
}
private void this_MouseLeave(object sender, EventArgs e)
{
if(myState == "show" && !isOverContextMenuItem)
{
System.Diagnostics.Debug.WriteLine("Exit");
isOverContextMenu = false;
HIDE();
}
}