Search code examples
vb.netmenustrip

VB.Net MenuStrip - All submenus visible at once


Weird question:

I have a menustrip in a VB.Net windows form, my teacher in the university said that if I could make all dropdowns of the menustrip become visible at once, he would release me from the exam :D

Is this even possible and how?

I know I can .ShowDropDown() an entry, but when I call the next, the first one hides.

Thanks in advance!


Solution

  • Maybe this can help:

    CType(MenuStrip1.Items(0), ToolStripDropDownItem).DropDown.AutoClose = False

    CType(MenuStrip1.Items(1), ToolStripDropDownItem).DropDown.AutoClose = False

    CType(MenuStrip1.Items(0), ToolStripDropDownItem).ShowDropDown()

    CType(MenuStrip1.Items(1), ToolStripDropDownItem).ShowDropDown()

    In my test I get the two DropDown inside the ToolStripDropDownItems opened at the same time.