![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() Thanks you very much. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
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 |