'using a toolbar (vb4/32) 'first be sure you have add the custom controls 'Microsoft Windows Common Controls -> Comctl32.ocx 'step 1: 'add the control Imagelist 'set the propertie Custom 'General: size 'Images:Returnclick
'Insert Picture' to add the necessary pictures 'step 2: 'add the control Toolbar 'set the propertie Custom 'General: Imagelist 'Buttons: to add a button justclick
on 'Insert Button' 'at 'Image' you need toset
the index-number of the wanted picture 'this number is the sameas
the picturesindex
in the ImageList 'place - if youwant
- a ToolTipText 'or if you justwant
text place it behind the propertie 'Caption' 'click on 'OKE' when you are finished 'and the toolbar is ready 'now the code 'put it under the Privatesub
Toolbar1_ButtonClick(ByVal Buttonas
Button)select
case
Button.Indexcase
1 'click on the first buttoncase
2 'click on the second buttoncase
3 'click on the third button 'and so onend
Select End Sub 'you can change most properties a runtime Toolbar1.Buttons(1).Visible = False 'makes the first button disappear Toolbar1.Buttons(1).ToolTipText = "an other one" 'change the tooltip text of the first button Toolbar1.Buttons(2).Enabled = False 'disable the second button Toolbar1.Buttons(3).Caption = "KATHER" 'change the caption of the third button 'BTW you cannotset
the property Toolbar1.ShowTipsat
runtime!