Hi Jon,
I think this is caused by the fact that the Buttons collection does not return a collection of ints, but a collection of buttons:
Code:
foreach (Button myButton in toolBar1.Buttons)
{
myButton.Pushed = false;
}
toolBar1.Buttons[ButtonClicked].Pushed = true;
This code will loop through the Buttons collection, and each reference to a button is assigned to MyButton. This means you can treat MyButton as a real button (which it is) and simply use its Pushed property.
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.