How to remove header and menu from customtaskpane for outlook addin - outlook-addin

I am creating addin for outlook. I add custom usercontrol on custom task pane. I just want to know that is there any approach to hide the the header text and custom menu ?

No, the caption bar with the close button cannot be hidden.

Related

Unable to add button to Custom List Item Ribbon

I am trying to add a Print Item button to the Forms (New, Edit, Display) of items in a Custom List. In order to achieve this I am using the following microsoft article https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-2010/hh500259(v%3Doffice.14).
I follow the steps, however the Button is not displayed. Attaching Screenshots of how it is set on Sharepoint designer as reference
Do you have any ideas of what can be happening? Is there another way to add a print button the the Items Ribbon?
The button would not be added to the Items ribbon. In fact, the button is added to the drop down menu of the list item, as the below picture shows:

List Custom Button IDs in Outlook 2010 Inspector Ribbon

I have an inspector in Outlook 2010 that contains a button that was placed in the Show group in the ribbon. The inspector current item is an appointment item. The form that this button originally belonged to no longer exists but, the button remains in the Show group and there is no documentation on this button. Is there a way to list all of the buttons by ID that are in the current ribbon? I'm looking to find the ID of this button so I can set enabled to false in my XML but, have had no luck thus far.
EDIT: To be a little more precise, I'm looking to loop through all of the elements in the ribbon in Outlook so I can find the correct ID of a button I want to remove from it. I'm using C#, .NET 4.0 and VSTO for the add-in.
Answering this myself in case anyone needs it.
You can use HideFormPage("Button Name") to hide the orphaned button placed in the ribbon by a custom form. There is no need to loop through the ribbon and find it.
Application.ActiveInspector.HideFormPage("Button Name");

Dispaly ruler and the grid in powerpoint using VSTO project

I'm new to VSTO development. I need to add a ribbon menu to Power point . And this has a tick to enable ruler and the grid in power Point Slide. Is there any inbuilt method to active those via VSTO project.
You can display the grid lines with this line of code:
Application.DisplayGridLines = True
I'm seeing a way to display the ruler.
What is the scenario for displaying the ruler? Do you want to add button to custom ribbon that displays the ruler? If this is the case, you could use RibbonXML to include the built-in "Show Ruler" checkbox in custom ribbon.
http://msdn.microsoft.com/en-us/library/vstudio/aa942866.aspx

make collapsible custom task panes in outlook?

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"

SharePoint: How to capture the Click event for the Close link on the WebPart menu?

I want to overwrite the behaviour of the Close link on the WebPart dropdown menu so that I can delete the webpart from the page instead of closing them.
Any advise?
No need for an event handler - just set the AllowClose property of the part to False. This can be done in code, in the .webpart file, or by editing of the settings of the part using the browser.