Hi Ashish,
I also had similar problem .. here is the solution which u got after 2 days
RnD
include Ribbon xml file : (You will need to customize qat)
<ribbon startFromScratch="true"
<qat
<sharedControls
<button idMso="FileSave" /
<button id="PreviousAction" label="Previous"
supertip="Click to view previous email message"
imageMso="MessagePrevious"
onAction="Previous_Action" keytip="C" /
<button id="NextAction" label="Next"
supertip="Click to view next email message"
imageMso="MessageNext"
onAction="Next_Action" keytip="B" /
</sharedControls
</qat
</ribbon
Next_Action()
{
// do your action
//Call following to use default feature of Next arrow
Globals.ThisAddIn.Application.ActiveInspector().CommandBars.ExecuteMso("MessageNext");
}
same goes for previous action ..
Thanks!
Regards,
Sandeep Yadav
> .Net Developer
"Heinz-Josef Bomanns" wrote:
> Hallo Ashish,
>
> >Does it mean it is not possible to capture events for these buttons. Outlook
> >does not provide that?
> Yes...
>
> >"Heinz-Josef Bomanns" <NotForMail@t-online.de> wrote in message
> >news:lrfne5dgnsanoutcnebq322n2temkg52q2@4ax.com...
> >> Hallo Ashish,
> >
> >>>In outlook 2003, When open a mail there are 2 buttons in statndard menu
> >>>which are Next Item and Previous Item (in arrow symbol) in open mail
> >>>window.
> >>>I am not able to capture events for these two buttons. Besides these i can
> >>>capture events for other buttons on standard menu. I can not know in my
> >>>addin when user click on these buttons. Their ids are 359 and 360.Please
> >>>suggest how to capture events for those.
> >
> >> You can try to put references to the two buttons for e.g. in variables
> >> (declared 'As Office.CommandbarButton') "btnID359" and "btnID360",
> >> then hide the buttons (.Visible= False) and add your own buttons with
> >> the same positions and FaceIDs. In the appropriated event procs of
> >> your buttons do what you have to do and finally do call
> >> "btnID359.Execute" or "btnID360.Execute" to run the original
> >> functionallity. Just some theoretical thoughts, but worth a try i
> >> think...
>
> So long...
> ...Bomi
>
> > !!! In case you want to reply via email please use Reply-To address and remove underscores (_) !!!
> .
>