ToolStripMenuItem Parent or Child

  • Thread starter Thread starter Nits
  • Start date Start date
N

Nits

Hi all

How can I determine if a ToolStripMenuItem is having child controls ?

Thanks
Nits.
 
Hi all

How can I determine if a ToolStripMenuItem is having child controls ?

Thanks
Nits.

For a top level menu named, FileMenu:

If Me.FileMenu.HasDropDownItems Then
Dim i As Integer = Me.FileMenu.DropDownItems.Count
MessageBox.Show("FileMenu has " & i & " sub-menu items")
End If
End Sub

Gene
 

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