msoControlButton

  • Thread starter Thread starter Lars Roland
  • Start date Start date
L

Lars Roland

Hi I have an commandbar where I add buttins of the type msoControlButton
I create these buttons as tempoary, because I want to be able to easalty
uninstall them. The problem is that if I add a new group to the commandbar
(eg. I create a button that has the option .BeginGroup=True) then the
buttons in this grup does not get removed if I unistall my commandbar.
Can I somehow force the buttons to get removed ?.

This problen only seams to be on Outlook 2000.



Regards:

Lars Roland.
 
I don't understand - if you remove the toolbar completely, how could the buttons that you put on it still be there? Are they on another toolbar?

If you assigned unique IDs to your custom buttons, you can use FindControl to return a reference to them and call its Delete method.
 
Back
Top