I've got several menuitems on the same pulldown menu which are intended to be checked or unchecked by the user. I'll call these "cfg items". The checks are flags for configuration settings. I'd like the pulldown menu to not be collapsed during selection of these particular menuitems. This is because the user is likely to set several checks in a row. I've also got other menuitems which launch things in the application. I'll call these "typ items". These other menuitems should allow collapse as is typical. I tried calling PerformClick method for pulldown menu at the end of the event handler for "cfg items", but that didn't work. If there's an easy solution, I'd appreciate any help. Here's section of code....
Code:
Private Sub mnuRedundantDataFromDatabases_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuRedundantDataFromDatabases.Click
mnuRedundantDataFromSolidworks.Checked = False
mnuRedundantDataFromDatabases.Checked = True
mnuMenu.PerformClick() 'intended to dropdown menu to appear like it didn't collapse (didn't work)
End Sub
Private Sub mnuRedundantDataFromSolidworks_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles mnuRedundantDataFromSolidworks.Click
mnuRedundantDataFromDatabases.Checked = False
mnuRedundantDataFromSolidworks.Checked = True
mnuMenu.PerformClick() 'intended to dropdown menu to appear like it didn't collapse (didn't work)
End Sub