![]() |
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 |
#7
|
|||
|
|||
![]()
VSTO or any other technology or language, Outlook 2003 or 2007:
Office.CommandBar bar = null; int count = insp.CommandBars.Count; for (int i = 1; i = count; i++) { bar = (Office.CommandBar)insp.CommandBars[i]; if (bar.Name == myBar.Name) { bool barVisible = bar.Visible; } } Of course if you are developing for Outlook 2003 in VSTO the point is moot, since that won't support the ribbon unless you use something like the PIA-less methods mentioned by Andrew Whitechapel of the VSTO team on his blog. But access to the CommandBars collections is not a reason to fork any code. -- 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 "Brunwin" wrote in message ... Thanks. 1 worked. I don't think in VSTO 2005 SE I can do 2 though. I think it points towards having to split the codebase for Office 2003 and Office 2007 in the future though. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
detecting new mail in shared mailbox | Mark VII | Outlook and VBA | 2 | April 22nd 08 09:08 PM |
Detecting the type of items for a folder | dch3 | Outlook and VBA | 5 | November 5th 07 05:11 PM |
Detecting the .ActiveWindow() w/C# | Vic[_2_] | Outlook - General Queries | 1 | October 24th 07 07:21 PM |
Detecting when Appointment Occurs | mwernerps2 via OfficeKB.com | Add-ins for Outlook | 1 | October 20th 07 11:29 PM |
detecting when Word is being used to compose email ? | Mark Beiley | Add-ins for Outlook | 5 | July 23rd 07 06:35 AM |