none
How to add Command Bar to Default Ribbon in Outlook 2010 using VS2010 C# RRS feed

  • Question

  • i want to create a new command bar in  Default Ribbon of  Outlook 2010 using VS2010 C#.

    And i want to provide a command on that to open recent folders and also to choose another folder.Please Let me know how could i do that. I am a new to development world.So help me out.

    Monday, September 17, 2012 5:18 AM

Answers

  • You cannot create new command bars in Outlook 2010, they are deprecated. Do you mean you want to create a new ribbon group or ribbon tab? For a default tab you can only add your own custom groups, you cannot modify existing default groups by adding your own UI to them.
     
    See http://msdn.microsoft.com/en-us/library/office/aa338202(v=office.12).aspx to get started learning about ribbon customizations. It was written for Outlook 2007 but provides a basis for understanding customization of the ribbon.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "nirajzambad" <=?utf-8?B?bmlyYWp6YW1iYWQ=?=> wrote in message news:ad1bb31f-8323-41a3-a142-3dff057e28bb...

    i want to create a new command bar in  Default Ribbon of  Outlook 2010 using VS2010 C#.

    And i want to provide a command on that to open recent folders and also to choose another folder.Please Let me know how could i do that. I am a new to development world.So help me out.


    Ken Slovak MVP - Outlook
    • Marked as answer by NirajZ Tuesday, September 18, 2012 8:57 AM
    Monday, September 17, 2012 6:24 PM
    Moderator

All replies

  • You cannot create new command bars in Outlook 2010, they are deprecated. Do you mean you want to create a new ribbon group or ribbon tab? For a default tab you can only add your own custom groups, you cannot modify existing default groups by adding your own UI to them.
     
    See http://msdn.microsoft.com/en-us/library/office/aa338202(v=office.12).aspx to get started learning about ribbon customizations. It was written for Outlook 2007 but provides a basis for understanding customization of the ribbon.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "nirajzambad" <=?utf-8?B?bmlyYWp6YW1iYWQ=?=> wrote in message news:ad1bb31f-8323-41a3-a142-3dff057e28bb...

    i want to create a new command bar in  Default Ribbon of  Outlook 2010 using VS2010 C#.

    And i want to provide a command on that to open recent folders and also to choose another folder.Please Let me know how could i do that. I am a new to development world.So help me out.


    Ken Slovak MVP - Outlook
    • Marked as answer by NirajZ Tuesday, September 18, 2012 8:57 AM
    Monday, September 17, 2012 6:24 PM
    Moderator
  • If i want to save Received mail into any folder then what could i do?

    That means if i select a mail then click a button "Save Here!" then it should show me a pop up menu with recent folders, and choose another folder??????

    then that mail should get saved to folder where i will tell him..

    PLease reply !!

    Tuesday, September 18, 2012 8:57 AM
  • To get a dialog showing the Outlook folders use the NameSpace.PickFolder() method. That returns a selection of an Outlook folder from the folder list. That list however cannot be filtered or customized in any way.
     
    To display a custom dialog that has recently used folders you would need to design your own dialog from scratch. That could be done by using a treeview control and parsing each folder in each open mail store to populate the treeview control. That's entirely up to you.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "nirajzambad" <=?utf-8?B?bmlyYWp6YW1iYWQ=?=> wrote in message news:d35a938a-33f2-45a7-9753-993bc7eb361f...

    If i want to save Received mail into any folder then what could i do?

    That means if i select a mail then click a button "Save Here!" then it should show me a pop up menu with recent folders, and choose another folder??????

    then that mail should get saved to folder where i will tell him..

    PLease reply !!


    Ken Slovak MVP - Outlook
    Tuesday, September 18, 2012 1:44 PM
    Moderator
  • That means i have to Add a new Windows form for Pop Up Menu & Add controls to it??

    Could you please redirect me to any sample project for the reference?

    Tuesday, September 18, 2012 1:50 PM
  • I don't have a reference for that, do a search on populating treeview controls and on listing Outlook folders. That should return plenty of results for you.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "nirajzambad" <=?utf-8?B?bmlyYWp6YW1iYWQ=?=> wrote in message news:ef343ffb-0e11-4bee-b69a-6c2f9ea0c5e9...

    That means i have to Add a new Windows form for Pop Up Menu & Add controls to it??

    Could you please redirect me to any sample project for the reference?


    Ken Slovak MVP - Outlook
    Tuesday, September 18, 2012 1:56 PM
    Moderator
  • Thank You Sir!!

    But have not answered my question that

    should i have to Add a new Windows form for Pop Up Menu & Add controls to it??


    • Edited by NirajZ Tuesday, September 18, 2012 2:02 PM
    Tuesday, September 18, 2012 2:01 PM
  • If you want a custom dialog you would use a Windows form or a WPF form or a browser control window or whatever other way you decide to display that user interface. How you do it is up to you. For example for a Windows form you could use a treeview control and one or more buttons to display the interface. What controls you use depends on how you design the form.

    --
    Ken Slovak
    [MVP-Outlook]
    http://www.slovaktech.com
    Author: Professional Programming Outlook 2007
    "nirajzambad" <=?utf-8?B?bmlyYWp6YW1iYWQ=?=> wrote in message news:23bc59e9-ba1c-4216-b57f-9470154ce5dc...

    Thank You Sir!!

    But have not answered my question that

    should i have to Add a new Windows form for Pop Up Menu & Add controls to it??



    Ken Slovak MVP - Outlook
    Tuesday, September 18, 2012 6:09 PM
    Moderator