ms-wordvstoms-officeoffice-interopoffice-2010

Can I control the Office message bar programatically (Protected View Window)


In Office, a yellow or red message bar is sometimes shown below the ribbon. It is usually red for security related messages, and yellow for information messages.

The screenshot below shows MS Access displaying a typical message bar.

Screenshot of yellow message bar in MS Access

I would like to create a small Word add-on that programatically uses this UI feature. Is that possible? I've searched the MSDN information on customizing Office but can't find any reference on how to do this.


Solution

  • The best answer to my own question so far is to style a custom task pane to look like the yellow panel, and to use DockPositionRestrict to prevent it from being moved. Not marking this as the answer just yet in case anyone knows of something better.