hi there, i hope you have any ideas to solve my problem with dynamic created buttons in vb2008sp1.
Dim RibbonButtonDyna(3) As RibbonButton
Dim z As Int32
While z < 3
RibbonButtonDyna(z) = New RibbonButton
RibbonButtonDyna(z).Text = "Button No. " & z & " pressed."
z = z + 1
'follow code works fine with one specified button
Private Sub RibbonPanel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles RibbonPanel.Click
now, how receive the index from clicked item or text from button which is clicked ?