How can one suppress the mini toolbar from appearing on the right-click event in Microsoft Word? - vb.net

I am working on a custom vb.net application which uses Microsoft Word embedded in it. As the users are restricted to what kind of formatting they are allowed to do while modifying documents, we are using a template which contains custom ribbons and menus.
In the past we have also captured the right-click event to suppress the display of the built-in shortcut menu and mini toolbar.
We would now like to re-activate the right-click to bring up a modified shortcut menu. This we can do through macros and templates. However, we are not able to keep the mini toolbar from appearing on the right-click event. We have turned off the Word Option which automatically brings up the mini toolbar when one selects text, however, that does not affect the behavior of the right-click event.

Related

VBA / VSTO > Powerpoint > Hide Secondary Context Menu

I have written a VSTO addin for Poweproint.
I am able to hide/disable most existing context menu buttons using the CustomUI XML config.
But cannot find how to access the secondary context menu (see below).
Not the whole thing. Just the top part (Style/Crop/New Comment)
What is the idMso for the mini context menu?
Ideally I would like to hide the mini context menu.

MSAccess VBA Enable/disable item on shortcut menu at runtime

I use several custom Shotcut Menu Bars in my MSAccess solution. If I use the built in shortcut menu bars they will automatically disable, grayed out, an item not available at the time of right clicking. How can I replicate this during run-time on my custom shortcut menu bars? Custom Shortcut Menu Bar In this example I would like to gray out the item "Send SMS" if the contact does not have mobile/cell number. I currently do this by having two different shortcut menus that is set at runtime, depending on if the number is available.

Can there be two ribbons in an Outlook VSTO Add-in?

I'm using the visual designer and have one custom ribbon with 12 or so buttons on it. I'd like to add the most important button from that ribbon onto "TabMail" so that I can use it more easily.
I have added another ribbon via the "add..." dialog, then ribbon, and then add a test button to it. When I then run the solution (from Visual Studio, debug or release) it seems to pick one ribbon or another to show - either leaving me missing a button, or missing 12!
What am I doing wrong?
I've just found that what I should be using is two Tabs, not two Ribbons. Each tab can appear wherever you want, rather than each having to come up as a separate custom tab.
Here's the setup inside visual studio:
Shown below is "My Button" in blue, and in red is "My Tab"

Outlook 2003 toolbar customization: add/edit button list

I have macros in my VbaProject.OTM file. A new toolbar is created when Outlook is launched to allow users to easily run the macros.
(sorry about the interface being in French ;-))
I would like users to be able to customize the toolbar by removing some of its buttons or adding them back. Here is the customization panel:
All my macros are there (all the public Sub()s in modules). However, the macro names and icons aren't really user friendly. I'm looking for a way to change both the icons and names. I'm actually using default FaceIds for my toolbar buttons (but I will add some custom icons in the future too). Also, if there would be a way for some public Sub()s to not me showed there, it would be perfect. Or to add a whole category instead of the Macros category.
When searching through the Web, all I can find is how to add toolbar buttons (which is already done in my example). Does anyone have any idea on how to edit the names/icons in the toolbar Customization panel? Is it possible?
I suggest built-in dialog boxes cannot be modified with VBA.
Try adding a permanent button "Add/delete buttons" to the toolbar, to launch a userform to choose the specific macros you want users to work with. You could then use a better name and other text to describe the macros in your own listbox.

Is it possible to make a statusbar like notepad in VB?

I made a notepad using vb 2008 and I am facing a problem who I'd make the Statusbar.
any idea will be great.
Note: I am using the Textbox to read and write text
Thank you
You need to add a StatusStrip control to your form.
To find it, open the Toolbox, expand the "Menus & Toolbars" section, and double-click on the one named "StatusStrip".
Double-clicking on the control in the Toolbox will automatically add it to your form, and dock it along the bottom, just like it is in Notepad.
Once the control is there, you can customize it by changing properties in the Properties window. If you want to add information to the status bar, you do that by adding sub-controls inside of it. Click the drop-down arrow next to the "new" icon, and you'll see a list of possible choices:
"StatusLabel" — displays static text
"ProgressBar" — displays a progress bar, indicating the progress of a background operation
"DropDownButton" — displays a drop-down button, to allow a choice of multiple options
"SplitButton" — displays a drop-down button that allows a choice of multiple options, but also invokes the default option by a single click on the button.