Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Add-In: Does CommandBarControl.Delete also remove all controls created from it?

$
0
0

Hi,

Win8, VS 2012.

My question derives from the examples here: http://www.mztools.com/articles/2005/mz2005003.aspx. where it says (new main menu):

' Add a new button on that commandbar popup
myCommandBarPopup2Button = DirectCast(myCommand.AddControl(myTemporaryCommandBarPopup2.CommandBar, _
myTemporaryCommandBarPopup2.Controls.Count + 1), CommandBarButton)

Later the CommandBarControl "myTemporaryCommandBarPopup2" is deleted. Does that also delete the "myCommandBarPopup2Button"? Or should that be explicitly deleted (just missing from the example)?

--
Werner


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>