Help!

How to hide/disable send button in Outlook 2007

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Forms RSS
Next:  Circular reference help  
Author Message
jubergolandaj
External


Since: Aug 11, 2009
Posts: 1



PostPosted: Tue Aug 11, 2009 2:14 am    Post subject: How to hide/disable send button in Outlook 2007
Archived from groups: microsoft>public>outlook>program_forms (more info?)

I am working on Outlook 2007 Add-in developed in C# and VS-2008. In this we
are having our own custom form .oftOn this form we have our custom “Send”
button on click event of it our processing continues. Now the problem we are
facing is we want to disable or hide the built-in send button of Outlook on
the Ribbon. Also we want to disable or hide some groups in the Tabs on
Ribbon. We have tried to do this by using custom Ribbon class implementing
Office.Core.IRibbonExtensibility interface.In ThisAddin file we have written
the following method: protected override
Microsoft.Office.Core.IRibbonExtensibility
CreateRibbonExtensibilityObject(){return new Ribbon(); }In Ribbon class the
xml file is referred which disable the particular groups from ribbon tab.But
this is applied to all the new mail items not only to my custom form. Or at
least other best option we can see is, catch the send button click event of
outlook and with that we need "Alt+S" and "Cntrl+Enter" event also. Is it
possible?
Back to top
Dips
External


Since: Aug 11, 2009
Posts: 1



PostPosted: Tue Aug 11, 2009 2:36 am    Post subject: Re: How to hide/disable send button in Outlook 2007 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 11, 2:14pm, jubergolandaj
<jubergolan....TakeThisOut@discussions.microsoft.com> wrote:
> I am working on Outlook 2007 Add-in developed in C# and VS-2008. In this we
> are having our own custom form .oftOn this form we have our custom Send
> button on click event of it our processing continues. Now the problem we are
> facing is we want to disable or hide the built-in send button of Outlook on
> the Ribbon. Also we want to disable or hide some groups in the Tabs on
> Ribbon. We have tried to do this by using custom Ribbon class implementing
> Office.Core.IRibbonExtensibility interface.In ThisAddin file we have written
> the following method: protected override
> Microsoft.Office.Core.IRibbonExtensibility
> CreateRibbonExtensibilityObject(){return new Ribbon(); }In Ribbon class the
> xml file is referred which disable the particular groups from ribbon tab.But
> this is applied to all the new mail items not only to my custom form. Or at
> least other best option we can see is, catch the send button click event of
> outlook and with that we need "Alt+S" and "Cntrl+Enter" event also. Is it
> possible?

I'm also facing same problem. Can somebody answer this question? It
will be very helpful...Smile
Back to top
dxider
External


Since: Aug 21, 2009
Posts: 1



PostPosted: Fri Aug 21, 2009 9:01 am    Post subject: Re: How to hide/disable send button in Outlook 2007 [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Some time ago I did something similar, try using
http://support.microsoft.com/default.aspx/kb/173604 as a reference for
buttons IDs and CommandBars names, in this case, you can use:

Item.GetInspector.CommandBars("File").FindControl(, 3).Visible = False

in the Open event of the Custom Form as a posible solution to hide the Save
(ID=3 in File CommandBar) button.

or

Item.GetInspector.CommandBars("Standard").FindControl(, 3).Visible = False

in the Open event of the Custom Form as a posible solution to hide the Save
(ID=3 in Standard CommandBar) button.


I hope this can help to solve the issue.
--
Dream it, love it, CODE it!!!


"Dips" wrote:

> On Aug 11, 2:14 pm, jubergolandaj
> <jubergolan....DeleteThis@discussions.microsoft.com> wrote:
> > I am working on Outlook 2007 Add-in developed in C# and VS-2008. In this we
> > are having our own custom form .oftOn this form we have our custom “Send”
> > button on click event of it our processing continues. Now the problem we are
> > facing is we want to disable or hide the built-in send button of Outlook on
> > the Ribbon. Also we want to disable or hide some groups in the Tabs on
> > Ribbon. We have tried to do this by using custom Ribbon class implementing
> > Office.Core.IRibbonExtensibility interface.In ThisAddin file we have written
> > the following method: protected override
> > Microsoft.Office.Core.IRibbonExtensibility
> > CreateRibbonExtensibilityObject(){return new Ribbon(); }In Ribbon class the
> > xml file is referred which disable the particular groups from ribbon tab.But
> > this is applied to all the new mail items not only to my custom form. Or at
> > least other best option we can see is, catch the send button click event of
> > outlook and with that we need "Alt+S" and "Cntrl+Enter" event also. Is it
> > possible?
>
> I'm also facing same problem. Can somebody answer this question? It
> will be very helpful...Smile
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Program Forms All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum