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

Disable button from addins Outlook 2007



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old April 1st 08, 02:27 PM posted to microsoft.public.outlook.program_addins
Andrey_R
external usenet poster
 
Posts: 13
Default Disable button from addins Outlook 2007

Hi!
I have addins Outlook 2003. Cobe write VB6. I wont to treasfer it to Visual
Studio 2005 for Outlook 2007. And I have problem.
In Outlook 2003 I operate visibility button when I open massage in INBOX. I
write code
Dim comBarCtrl As CommandBarControls
Dim createButton As CommandBarControl

For countId = 354 To 356
' button "Replay" to button "Forward"
Set comBarCtrl = Toolbars.FindControls(Id:=countId)
For Each createButton In comBarCtrl
createButton.Enabled = False
Next
Next

But this code doesn't work in Visual Studio 2005. This button don't visible
operation There use ribbon.
What can I connect to ribbon and button "Resend"..."Forward" on the ribbon?
Ads
  #2  
Old April 2nd 08, 03:19 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Disable button from addins Outlook 2007

You address ribbon controls using the idMso of the control but there is not
method for setting enabled = false for a specific control like you want.
Instead you have to use ribbon XML and callbacks. For built-in controls like
"Forward", "Reply" and "ResendThisMessage" (those are the idMso's) you would
need to use the StartFromScratch XML tag and basically re-create the UI you
want to show from scratch.

See
http://msdn2.microsoft.com/en-us/lib...omscratch.aspx

--
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


"Andrey_R" wrote in message
...
Hi!
I have addins Outlook 2003. Cobe write VB6. I wont to treasfer it to
Visual
Studio 2005 for Outlook 2007. And I have problem.
In Outlook 2003 I operate visibility button when I open massage in INBOX.
I
write code
Dim comBarCtrl As CommandBarControls
Dim createButton As CommandBarControl

For countId = 354 To 356
' button "Replay" to button "Forward"
Set comBarCtrl = Toolbars.FindControls(Id:=countId)
For Each createButton In comBarCtrl
createButton.Enabled = False
Next
Next

But this code doesn't work in Visual Studio 2005. This button don't
visible
operation There use ribbon.
What can I connect to ribbon and button "Resend"..."Forward" on the
ribbon?


  #3  
Old April 2nd 08, 07:12 PM posted to microsoft.public.outlook.program_addins
Andrey_R
external usenet poster
 
Posts: 13
Default Disable button from addins Outlook 2007


Thanks you very much.
 




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
Show Tab "AddIns" in Outlook 2007 Christian Havel Add-ins for Outlook 5 July 10th 07 02:53 PM
Removing Addins in Outlook 2007 Thatch Add-ins for Outlook 14 June 22nd 07 05:58 PM
Is there a way to disable the RSS feature in Outlook 2007 Midwest Muskie Outlook - Installation 2 April 9th 07 01:48 PM
disable quicksearch in Outlook 2007 Beta rickpaul Outlook - Installation 2 June 5th 06 04:08 PM
Outlook 2007 with Outlook 2000 addins Dave Add-ins for Outlook 6 June 2nd 06 04:06 PM


All times are GMT +1. The time now is 04:51 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.