ToolStripMenuItem bug ?

  • Thread starter Thread starter ptheate
  • Start date Start date
P

ptheate

Hi,

I have a ToolStripMenuItem ('A') with a sub menu ('B') (also a
ToolStripMenuItem), their parent is a ToolStripDropDownButton.
Both ToolStripMenuItem use the check mark (property Checked).
After the sub menu 'B' check mark is clicked, the menu disappear.
But when the menu 'A' check mark is clicked, the menu doesn't
disappear !
Is it the normal behaviour ?
If yes, how can I "Close" the menu 'a4 after a click on check mark ?

Thanks in advance for your help,

Pierre.
 
private void ToolStripMenuItemA_CheckStateChanged(object sender,
EventArgs e)
{
toolStripDropDownButton1.DropDown.Close();
}

HTH
VJ
 
Back
Top