I have a Windows Form project that inherits a form from a FormBase that
contains a Toolbar and an Imagelist, both of them Public. The Imagelist is
associated with the Toolbar. I have added buttoms to the Toolbar and images
to the Imagelist and I have associated them via ImageIndex from the Toolbar.
Afte compiling the images have dissapeared from the buttoms in the Toolbar. I
have noticed that the generated code in the InitializeComponent, for the
buttoms is above the definition of the code for the Toolbar, which I believe
is making the images to dissapear from the Toolbar as the definition for the
Toolbar doen not exist yet. Am i right?

Any ideas how can I solve this problem as I want to inherit all my form from
this FormBase to have the flexilbility to configure my toolbars independently
of the form?

Below as an example I show the code generate in the InitializeComponent.


'

'ImageList

'

Me.ImageList.ImageStream = CType(resources.GetObject

("ImageList.ImageStream"), System.Windows.Forms.ImageListStreamer)

'

'Toolbar

'

Me.Toolbar.Buttons.AddRange(New System.Windows.Forms.ToolBarButton() {

Me.ToolBarButton1})

Me.Toolbar.Name = "Toolbar"

Me.Toolbar.Size = New System.Drawing.Size(345, 28)

'

'ToolBarButton1

'

Me.ToolBarButton1.ImageIndex = 0


--
Carlos Hulot
--------------------------------
.Net Developer Solutions

Tel: (11) 5504-2215
Cel: (11) 8315-7456
email: cahulot@microsoft.com