Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » Cannot Add a Button to a RibbonGallery? Collapse All
Subject Author Date
Gunter Avenius Jul 12, 2008 - 4:24 AM

Hello,


Elegant Ribbon 3.0, vb2005,


What wrong with my Code?:


 


  Dim ribbongroup As Elegant.Ui.RibbonGroup = Me.Group1

  Dim ribbonButton As New Elegant.Ui.Button
  ribbonButton.Text = "My Button"
  
  Dim ctlGallery As Elegant.Ui.Gallery = Me.Gallery1
  Dim pPopUp As PopupMenu

  pPopUp = ctlGallery.Popup
  pPopUp.BeginInit()
  pPopUp.Items.Add(ribbonButton)
  pPopUp.EndInit()

 


Thanks

Gunter


 

Gunter Avenius Jul 12, 2008 - 4:45 AM

Hello,


it works. Sorry.


Gunter