Mouse button Pop Up

S

Shell

In Access 2000 and Windows XP, I have a label with no caption. I use it so
that an admin can right click on the form and some command buttons become
visible. If the admin right clicks again the command buttons become
invisible.

The problem is that when you right click on the form you get a pop-up menu
which contains some enabled values (Form Design, Data Sheet View) and some
not enabled values.

How do I NOT have this pop up menu display when the right mouse button is
clicked over the invisible label?

Thanks
 
S

Stuart McCall

Shell said:
In Access 2000 and Windows XP, I have a label with no caption. I use it
so
that an admin can right click on the form and some command buttons become
visible. If the admin right clicks again the command buttons become
invisible.

The problem is that when you right click on the form you get a pop-up menu
which contains some enabled values (Form Design, Data Sheet View) and some
not enabled values.

How do I NOT have this pop up menu display when the right mouse button is
clicked over the invisible label?

Thanks

Set the form's "Shortcut Menu" property to "No". However, if the label isn't
visible it'll never respond to the mouse click. If by invisible label you
actually mean a label with it's visible property set to Yes, but doesn't
show because the BackStyle is set to Transparent, then you'll be ok.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top