PDA

View Full Version : [SOLVED] Context menu on UserForm "reluctant" to show first time



macnab
07-04-2018, 11:43 PM
Office 2007
Windows 10

My (modal) user form is populated with 120 comboboxes which are created at runtime so that they can be in an array. If that is relevant.



When I right-click on the form the context menu appears, but only just. I can see it because I know it should be there. If I move the mouse-pointer over it it "appears" as under the mouse pointer, as it moves, rather like using a paintbrush. It is also semi-transparent, in that parts of the components behind it show. The items do work when clicked.

If I click somewhere to dismiss it, and right-click again, it appears normally.

You are welcome to the code, if it helps.

EDIT: The menu doesn't show properly until I have clicked on one of the items. Merely dismissing it is not enough.

EDIT: Found a ScreenUpdating = False instead of TRUE.