I'm currently trying to develop an Outlook Add-In that extends an already existing function. To get it work, I need to hook into the On-Click-Event of an existing button (I have the IdMso of it), and execute additional code. Is that possible, and if so, how? I'm using C# as programming language.
Outlook Add-In VSTO - Hook into click of existing button
406 Views Asked by saltemohn 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 OUTLOOK
- Act on Outlook mail item when opened for editing
- Outlook MailItem HTML Formatting Dropdown
- Is there such thing as Outlook Message Delimiter?
- EWS Service.FindItems() throws an exception when using SearchFilter.IsEqualTo
- How to show the appointment page from a form region in outlook
- How to be sure Outlook application has been loaded completely (application.StartUp event)
- Outlook 2013: select multiple emails and autoreply using template
- Access VBA To Send Query Results to Outlook Email in Table Format
- Visual Basic - Screen shot then insert into email
- create a outlook add-in to popup an input text field form for user info
- Table width does not work in Outlook 2010
- Modify background color of MailItem in Outlook 2013 Inbox
- Getting Outlook Window from VSTO Addin
- Too many mistakes: String not correct _1 ; Controlsend?
- Outlook 2013 VBA Public Variable Doesn't Persist
Related Questions in VSTO
- Word Addin not working in 64bit office but working on 32bit office
- Debug Excel VSTO add-in when launched by double-clicking existing file
- Getting Outlook Window from VSTO Addin
- change the Label of a button in ribbon word add in
- Converting Text Document from English to Chinese in Tx Text control Winform third party developed tool
- MS-Word paragraph mark (¶) shows in equation mode, how to change normal mode
- C# Word Add-In Trusted Certificate
- How to detect during Tick event if a dialog is open in Word?
- how to copy the text from textbox and paste on outlook message body
- Office incorrectly states "Programmatic Access To Visual Basic Project Is Not Trusted"
- Outlook 2013 VSTO: Determine which calendar an AppointmentItem is on?
- Shapes manipulation slows down while in "Presenter View" mode
- Excel Interop Try Catch causes memory leak I find it hard to believe I have to pick between error handling or leaking memory?
- Word add-in - ribbon
- Searching user tasks by task.body text
Related Questions in OUTLOOK-ADDIN
- C++ ATL Outlook plugin does not load
- How to show the appointment page from a form region in outlook
- Inheritance of a .Net interface in C#: How to access base members
- Modify background color of MailItem in Outlook 2013 Inbox
- Outlook Addin: "Tell me more" text in Ribbon item hover
- How can my outlook addin know when a link or an image is clicked in the body of an email message?
- Searching user tasks by task.body text
- How to capture "Print Tab" click event at the backstage in Outlook 2010 ?
- How to create a top-level folder in my Outlook using vb.net - VB.NET, Outlook 2013
- How can my Outlook VSTO Add-in modify the read email form?
- VSTO Outlook Getting Email Address From Someone with same Domain
- How to add images from resources folder as attachment and embed into outlook mail body in C#
- Where can I find the images folder after I deploy the outlook add-in?
- Getting information from delegated email account from appointment inspector window - outlook 2013 using addin-express
- Outlook Addin appointmentitem PropertyChange event firing too much
Related Questions in RIBBONX
- How do you access Ribbon controls (eg. RibbonEditBox) from outside class?
- Disable auto resize of custom button groups in the Ribbon
- Excel 2013 Invalidate Ribbon control not working
- RibbonXml togglebutton OnAction not finding callback function
- Excel-2010 - CustomUI - Backstage : Errors when various files are opened in the same instance
- How to define size of a button in Excel 2013 using customUI editor
- Under Excel O365, the custom ribbon tab does not always populate
- How to add a custom Ribbon tab using VBA?
- Create Excel 2007 Ribbon without Custom UI Editor
- PowerPoint Add-In Loss of RibbonUI
- How can we set the width of a dropdown in VSTO Ribbn XML
- Use .ico image in ribbon
- How to get custom buttons working in Excel with VSTO
- VBA CustomUI activate or deactivate control
- Customizing the Excel Ribbon - intercept IDMSO - VBA
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?
Yes, it is possible to repurpose built-in controls. The
commandselement in the ribbon XML can do the trick, for example:This sample creates a reference to the save file functionality in Microsoft Office by using the command element. You can determine that this component includes a reference functionality built into Microsoft Office through its use of the idMso attribute.
For ribbon buttons the callback looks like that:
And for the
toggleButtoncontrol:See Temporarily Repurpose Commands on the Office Fluent Ribbon for more information.
By default, if a VSTO Add-in attempts to manipulate the Microsoft Office user interface (UI) and fails, no error message is displayed. However, you can configure Microsoft Office applications to display messages for errors that relate to the UI. You can use these messages to help determine why a custom ribbon does not appear, or why a ribbon appears but no controls appear. See How to: Show Add-in user interface errors for more information.