none
Enable and disable a CustomUI ribbon button in outlook 2010 addin RRS feed

  • General discussion

  • Hi, 

    I am making an add-in for outlook 2010. In my application I have added Custom ribbon and added some buttons in it. Now on click of a button a form is opened and some actions are performed. After completion of action I need to enable and disable some buttons in ribbon.

    To make buttons I added buttons definitions in MenuRibbon.xml like this:

    <group id="group1" label="Updates">
              <button id="button1" onAction="button1_Click" label="&amp;button1" image="Icon_02.png" />
              <button id="button2" onAction="button2_Click" label="Chec&amp;button2" image="Icon_02.png"/>
              <button id="button3" onAction="button3_Click" label="&amp;button3" imageMso="ControlToolboxOutlook" size="normal" /> 
            </group>

    Now on load of the ribbon button2 and button 3 must be disabled. At button1_Click I have successfully opened a form after the user finishes work on that form I need to enable button2 and button3.

    Here I am able to open the form but not able to enable or disable button neither at on load of ribbon nor at button1_click.

    Thanks & Regards


    Wednesday, May 30, 2012 6:56 AM

All replies