I created an addin for MS Word 365 using Custom Task Pane. Through the OnVisibleChanged method I am able to determine when to open/close the addin. The problem: by clicking the File menu (top right on the ribbon), its visibility change to false and the component disappears as if you had clicked on the "X" button. Is there any way to distinguish the close done by the "X" button? Or is there a way to not close the addin when clicking on File?
MS Word Custom Task Pane disappears when clicking on File menu
41 Views Asked by Antonio Argentieri At
1
There are 1 best solutions below
Related Questions in C#
- Passing arguments to main in C using Eclipse
- kernel module does not print packet info
- error C2016 (C requires that a struct or union has at least one member) and structs typedefs
- Drawing with ncurses, sockets and fork
- How to catch delay-import dll errors (missing dll or symbol) in MinGW(-w64)?
- Configured TTL for A record(s) backing CNAME records
- Allocating memory for pointers inside structures in functions
- Finding articulation point of undirected graph by DFS
- C first fgets() is being skipped while the second runs
- C std library don't appear to be linked in object file
- gcc static library compilation
- How to do a case-insensitive string comparison?
- C programming: Create and write 2D array of files as function
- How to read a file then store to array and then print?
- Function timeouts in C and thread
Related Questions in MS-WORD
- VBA query - sort text in alphabetical order in Word
- Can you programmatically generate a link to open a Word document and navigate to a particular location within it (preferably a comment)?
- How can I create an automatic table of contents in docx without the text being bold?
- Does MS Word secretly upload my file to cloud?
- How to use VBA to bold just some text
- Find text and numbers Formatted: "Case: BE########" and format them, regardless of the number
- Access all documents for Word from multiple instance using Excel VBA
- Using document.Application.PixelsToPoints will give different results
- Error: "Document_KeyUp" event not working
- Word macro for reversing selected text
- Make a table of remarks/figures, and format it as a table
- Add custom ribbon button to dotm file that runs macro
- Inline pictures: Add margin
- Excel VBA: Action logging on label click (like Audit Trail)
- Custom referencing format in CSL document, Want to add whitespace into bibliography
Related Questions in OFFICE-ADDINS
- office web addin URLs in manifest to local images
- Excel addin authentication for manifest referenced files
- Does the Excel desktop client have a DOM Document, and how do I get to it?
- Why PresentationOpen event is not triggered when opening an existing presentation via an hyperlink in the current presentation?
- Why can't I get a result from the Office.context.mailbox.item.to.getAsync function?
- VB code to set two color gradient in PowerPoint cell table
- Removing SlideMasters using the PowerPoint API
- how to get access token in word document 365 in desktop view
- Develop Add-in from an existing spreadsheet Excel JavaScript API
- Microsoft Excel Add-in Microphone Access
- PowerPoint JS API: connect 2 rectangles
- How can I get the full content of a Word Document?
- "Trusted Add-in Catalogs" in the Trust Center settings of Outlook is missing on my system
- Custom Web Addin is not shown on a ribbon
- Word Office Javascript API - Format first x chars
Related Questions in RIBBONX
- Can we extend the built-in Ribbon options using Office js manifests?
- Adding a button to outlook main application window's Ribbon UI via VBA?
- MS word picture format recolor with vba
- Outlook Add-in to parse emails and populate Django Database
- Display bullets toggle button, pressed and not pressed, on custom Word ribbon tab
- How to Disable Control type Menu in manifest file in office js add-in
- VBA - Custom tab Excel menu - Combobox - reset after user choice
- Intercepting a function in the Excel365 ribbon or disable the function using VBA
- Unable to import exported toolbar in Office Outlook 2021
- How do I Recover my Missing VSTO Add-In Ribbon
- VB.NET VSTO for Outlook Ribbon Tab Not Displaying Properly
- Customizing the Excel Ribbon - intercept IDMSO - VBA
- VBA CustomUI activate or deactivate control
- How to get custom buttons working in Excel with VSTO
- custom context menu command doesnt appear for outlook contacts
Related Questions in CUSTOMTASKPANE
- How to get signed in username, email address and user group details from taskpane app
- how to open taskpane when I click on button?
- VS - Office add-in doesn't load except if I stop the debugger
- Create In-Ribbon Gallery in Action(Task)Pane
- VSTO: CustomTaskPane Header Color change
- MS Word Custom Task Pane disappears when clicking on File menu
- Outlook VSTO how to get Custom Task Pane to work with multiple open compose windows?
- Different TaskPane for each Excel Sheet
- System.InvalidCastException while adding User control to CustomTaskPane
- how to disable close/resize buttons in word customTaskPane by VSTO?
- VSTO Outlook: WPF User control within custom task pane gets images and text blurry when using multiple monitors
- VSTO Outlook: Getting Screen.FromControl(this).Bounds makes message preview not be displayed in the explorer
- VSTO Outlook: Custom task pane title is shifted to the right when changing screen resolution and/or scale from the OS
- VSTO Outlook: Detect when custom task pane is being resized manually
- VSTO Outlook: Setting custom task pane height based on the screen resolution
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The custom task pane doesn't provide any event for that. That is because it is not really closed, the backstage UI hides any UI behind when it is displayed.
You can detect when the
Filemenu is opened in Office applications by handling theBackstage UI'sonHideandonShowevents, so that you will be aware when the backstage UI is closed and opened respectively.The
onShowcallback should have the following signature:The
onHidecallback should have the following signature: