make collapsible custom task panes in outlook? - vsto

Is it possible to make collapsible task panes in outlook. ie. Can I have a button on lets say a ribbon that upon clicking can either make the pane appear, or if it is already open make is collapse or disappear? Everything I've been able to find related to this involves add-in express, which I do not have. Any help or leads would be greatly appreciated.

Add-In Express is not required to show or hide a custom task pane. You can toggle the Custom Task Pane visibility by using the TaskPane.Visible property.
customTaskPane.Visible = false; // hides task pane from view
See Custom Task Panes on MSDN for further reference, specifically the section "Modifying the Appearance of the Task Pane"

Related

Want to display notification in Task pane in Word using VBA

I have coded a VBA macro that notifies me whenever a new comment has been added to a document using a MsgBox.
I now require that no notification should be in the form of a MsgBox but are displayed in a task pane by clicking on the custom button(Comment Notifier) on the ribbon of word.
Can you suggest me way to do this?
First of all, you need to migrate your existing VBA solution to the add-in rails. There is no way to create a task pane from VBA. The Walkthrough: Create your first VSTO Add-in for Word article explains how to get started quickly. After adding all event handlers to the add-in you may add a task pane to the add-in project, see How to: Add a custom task pane to an application for more information.
Finally, the Walkthrough: Synchronize a custom task pane with a Ribbon button explains how to automate a task pane by clicking on the ribbon button, so you just need to replace the source code a bit and display a notification on the task pane instead.

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.

Create Word Custom Task Pane using VB6

We have a already designed Word ribbon bar and we have our own styles set. We have a ribbon bar button called 'Styles' and when click on it, Styles model dialog will pop-up.
Now I need to create a non-model dialog to show the Styles as like as the the Word in-built Styles pane.
<dialogBoxLauncher >
<button idMso="StylesPane" />
</dialogBoxLauncher>
Our product's final output is a .dll and a Word Ribbon bar (.dotm).
Is it possible to overWrite the StylesPane iDMso to only show our Styles set within the task pane?
If can't, then . I have to create a custom task pane to hold those styles.
I found this article on "Creating a custom task pane using VB6".
But it is about Visual Basic AddIns.
I tried to find articles on web. But I was unable to find a good article.
It is really appreciated, if somebody can instruct what is need to do in this case.
Thank you.

context menu strip within another context menu

hi guys can any one pls help me with this thanks
Im using vb.nwt 2010
I wanted to create a context menu that shows another context menu when the item is clicked
I already have the running code for the first context menu but im lost at showing another context menu within the first one
thanks any help will be appriciated
If what you are asking is 'Can I create a sub menu on a context menu in the same way that a standard menu has one (as per my illustration)?' then the answer is yes. Just use the ContextMenuStrip control which you can find under the Menus & Toolbars strip in the toolbox panel in visual studio.
Set up the context menu the way that you wish it to be and then assign that context menu as the context menu of whichever control you want to invoke it at runtime.

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.