Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
435
Adding ButtonTools to a PopupGallery on runtime
posted

Hello,

I know this is not the function of a PopupGallery, but I want to add some ButtonTools to it.

On the Designer I can add them easily, but on runtime it doesn't work (see the attachments)

This is the Code is use:

 

 

 

Dim ParentTool As PopupGalleryTool = mToolBar.Ribbon.Tabs(1).Groups(0).Tools(0)

 

 

For Each ZAPTermin As Date In allAktZAPS

 

 

Dim strButtonKey As String = "fkdZ" & ZAPTermin.ToString

CreateButtonTool(strButtonKey, Format(ZAPTermin,

 

"MMM yyyy"), String.Empty, Nothing, My.Resources.calendar_1)

ParentTool.Tools.AddTool(strButtonKey)

 

 

Next

It seems like the width ist wrong or the Tools are not added to the Container...