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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top