Hi folks. Just wondering if anyone else has this problem and if there is a fix, or is it just me...
I place a MenuStrip on a form, run the application, mouse hover changes the colour and highlights the first level options, but the first mouse click on the menu is ignored. I have to click the menu twice to get the first level to 'realise' it has been clicked, as if there is some loose focus event somewhere not releasing the mouse click event.
The code makes no difference, simple things like popping a message box, opening another form. I have the problem if the menu system is blank, null and void of code.
I can place a menu, setup the structure in the designer and replicate the problem every single time the form is loaded without any code anywhere. Can you not replicate this?
Ok, let me start again and explain fully, in case I've missed something.
Create a new project.
Add a button, or a menu, or anything that calls another form, as in:
Dim New frm as frmUsers
frm.Show (or) frm.ShowDialog
Add a menustrip to the second form, add some controls to the strip at design time.
Add some code to a menu item, msgbox, what ever you like.
Run the application.
Click the menu strip.
If the form is shown modally the first click is ignored, the second displays the menu map you have created.
If the second form is just 'shown' (Show) then the first click sends the form to the background, you then have to move the first form to see the second form and you'll find the menustrip on the second form now works. Can you confirm this is the case for you also?
Bookmarks