Hi,
I'm having trouble getting a custom toolbar to appear on my form.
I have declared a new toolBar, 2 new ToolBarButtons, an ImageList and 2 new Icons.
I've added the images to the imagelist, set the imageindex of the toolbarbuttons to 0 and 1, set the imagelist to the toolbars imagelist property, added the buttons to the toolbar and set the toolbars location and size.
Then I've added the ToolBar to the forms Controls collection and made it visible.
All I see when I start it is a piece of the form changing colour - this piece is 'toolbar -shaped' so I assume it is the toolbar but it has no images or anything inside it.
Is there anything obvious missing here?
As you may have gathered, I'm new to C# so I'd appreciate any advice.
Cheers
Pete
I'm having trouble getting a custom toolbar to appear on my form.
I have declared a new toolBar, 2 new ToolBarButtons, an ImageList and 2 new Icons.
I've added the images to the imagelist, set the imageindex of the toolbarbuttons to 0 and 1, set the imagelist to the toolbars imagelist property, added the buttons to the toolbar and set the toolbars location and size.
Then I've added the ToolBar to the forms Controls collection and made it visible.
All I see when I start it is a piece of the form changing colour - this piece is 'toolbar -shaped' so I assume it is the toolbar but it has no images or anything inside it.
Is there anything obvious missing here?
As you may have gathered, I'm new to C# so I'd appreciate any advice.
Cheers
Pete