ListViewGroups vanish when used in WinForms ToolStripControlHost

39 views Asked by At

Windows 10, VS 2019 Community, VB.Net...

I'm wanting to use a listview control as a custom menu. Created a usercontrol, added a listview and populated it with groups and items in each group. I then added it to a ToolStripControlHost, and this was in turn added to a ContextMenuStrip which serves as the dropdown for a menu item on my form. Works fine except that the groups don't show up. The listview items are there but no groups. What might cause this? This image:

1

shows the usercontrol in the designer and also at runtime. Thanks in advance.

0

There are 0 answers