Hi

I'm dynamically adding buttons to a toolbar control as shown below:
VB Code:
  1. Dim menuitem As CMenuItem
  2.         Dim tbutton As ToolBarButton
  3.         tbrMenu.Buttons.Clear()
  4.         For Each menuitem In menulist
  5.             tbutton = New ToolBarButton()
  6.             With tbutton
  7.                 .Text = menuitem.MenuCaption
  8.  
  9.             End With
  10.             tbrMenu.Buttons.Add(tbutton)
  11.         Next

Some of the captions are quite long and the button is getting wide. How can I keep the button to a fixed width and then force the text to wrap itself if the width of the button is not enough?

Thanks