-
December 29th, 2012, 01:22 PM
#1
MenuStrip doesn't accept first click.
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.
Anyone?
Cheers.
-
December 29th, 2012, 04:32 PM
#2
Re: MenuStrip doesn't accept first click.
Probably helps to upload some CODE of the events in the Form, and how it's called. Use CODE TAGS, please.
-
December 31st, 2012, 08:47 AM
#3
Re: MenuStrip doesn't accept first click.
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?
-
December 31st, 2012, 01:51 PM
#4
Re: MenuStrip doesn't accept first click.
No, but I can help with samples of how to do it correctly. See the link http://code.msdn.microsoft.com/
-
December 31st, 2012, 05:04 PM
#5
Re: MenuStrip doesn't accept first click.
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?
-
January 1st, 2013, 06:29 PM
#6
Re: MenuStrip doesn't accept first click.
that doesn't call another form, it creates a NEW instance of it, and operates on that copy, not the originial
-
January 2nd, 2013, 07:55 AM
#7
Re: MenuStrip doesn't accept first click.
Oh for **** sake.
PUT A MENUSTRIP ON A FORM, CREATE THE FORM, TEST THE MENUSTRIP.
DOES IT WORK PROPERLY?
Last edited by HanneSThEGreaT; January 3rd, 2013 at 02:56 AM.
Reason: Removed Profanity
-
January 3rd, 2013, 03:21 AM
#8
Re: MenuStrip doesn't accept first click.
Hi tclancey.
Which version of Visual Basic is this?
I know that there are some issues with the controls which usually gets fixed with a service pack.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|