Hi, I have designed a custom form and published it. So far now its working fine. Now on What I want is to add BCC RecipientControl in my custom form at runtime. As we can add in default outlook compose form. But by default insert BCC option is disabled. if I add BCC RecipientControl at design time it will be displaying always. I want make work as outlook does for BCC RecipientControl. In Short I want to enable default insert BCC option present in outlook,on my custom form. Is there any work around to achieve this Regards Mangesh
Do you want to show the BCC field using code or when the user wants it shown? The user should be able to show BCC as they desire even with a custom message form. For code you'd have to simulate what a user would do to show the BCC field. For Outlook 2003 that means getting the CommandBarControl that represents the View, BCC Field menu item, which has a control ID of 8160. Once you have that control as a CommandBarButton object you can call its Execute method to toggle showing the BCC field. For Outlook 2007 that means looking up the idMso for the BCC toggle control in the ribbon and then using the Office.CommandBars.ExecuteMso() method with the idMso of the BCC control. The ribbon references from the Office Development Web site will have the idMso's for the various ribbons where you want to call that method. There are different ribbons for compose and read messages so you need to know which you plan on handling. -- 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 "Mangesh" wrote in message news:eMBV7eV8IHA.5712@TK2MSFTNGP02.phx.gbl... > Hi, > > I have designed a custom form and published it. > So far now its working fine. > Now on What I want is to add BCC RecipientControl in my custom form at > runtime. > As we can add in default outlook compose form. > But by default insert BCC option is disabled. > > if I add BCC RecipientControl at design time it will be displaying always. > I want make work as outlook does for BCC RecipientControl. > In Short I want to enable default insert BCC option present in outlook,on > my custom form. > > Is there any work around to achieve this > > Regards > Mangesh