A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How to provide custom functionality on click of "New"?



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old October 20th 09, 08:17 AM posted to microsoft.public.outlook.program_addins
madhavi
external usenet poster
 
Posts: 12
Default How to provide custom functionality on click of "New"?


Hi,

I am developing an outlook addin in c#
I need to take some custom action, when user clicks “New” button or
presses “CTRL + N” instead of displaying a new mail message. As there is
no onclcik event for commandbarpopup, I tried to add onAction property
as follows. But when I run the addin in debug mode, I am getting
exception as “Member Not Found …..”


How can I provide my own functionality on click of New (I am able to
achieve this, if user clicks on any item in the dropdown list of new as
they are commandbuttons and they have onclicj)
Office.CommandBarPopup cbc = (Office.CommandBarPopup)

this.Application.ActiveExplorer().CommandBars.Find Control
(Office.MsoControlType.msoControlPopup, 30037, missing,
missing);

cbc.OnAction = "newMenu_Click";

public void newMenu_Click(Microsoft.Office.Core.CommandBarPopu p
Ctrl, ref bool CancelDefault)
{
MessageBox.Show("new button clicked............");

}
Any help is very much appreciated


--
madhavi
http://forums.slipstick.com

Ads
  #2  
Old October 20th 09, 02:56 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How to provide custom functionality on click of "New"?

There are no events for that, as you can see in the Object Browser. You can
handle clicks on the buttons but that's about it. What are you trying to do?
You can add your own buttons to the popup and you can repurpose existing
buttons, but you can't do what you want.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"madhavi" madhavi.40cg3a@invalid wrote in message
news:madhavi.40cg3a@invalid...

Hi,

I am developing an outlook addin in c#
I need to take some custom action, when user clicks "New" button or
presses "CTRL + N" instead of displaying a new mail message. As there is
no onclcik event for commandbarpopup, I tried to add onAction property
as follows. But when I run the addin in debug mode, I am getting
exception as "Member Not Found ..."


How can I provide my own functionality on click of New (I am able to
achieve this, if user clicks on any item in the dropdown list of new as
they are commandbuttons and they have onclicj)
Office.CommandBarPopup cbc = (Office.CommandBarPopup)

this.Application.ActiveExplorer().CommandBars.Find Control
(Office.MsoControlType.msoControlPopup, 30037, missing,
missing);

cbc.OnAction = "newMenu_Click";

public void newMenu_Click(Microsoft.Office.Core.CommandBarPopu p
Ctrl, ref bool CancelDefault)
{
MessageBox.Show("new button clicked............");

}
Any help is very much appreciated


--
madhavi
http://forums.slipstick.com


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Address list cant display when I click "To" or "Cc"? JDS[_3_] Outlook - General Queries 13 April 9th 09 03:23 PM
Custom colums for "Inbox", "Contacts", and "Calandar" rcf Outlook - Installation 0 February 15th 08 10:31 PM
Seeking OE5.5 "Send a Link" functionality with OE6 WinXp Art Quest Outlook Express 6 November 23rd 06 06:20 AM
e-Mail Click on "To" Outlook Address Book first "Contacts" is em ed Outlook - Using Contacts 2 October 7th 06 10:53 PM
Outlook should provide a "create calendar entry option" sending em Larry K McDowell Outlook - Calandaring 1 October 4th 06 03:30 PM


All times are GMT +1. The time now is 09:22 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.