here's how I do it for all of the button controls in a group
VB Code:
For Each ctl As Control In StrategyBuildergrp.Controls If TypeOf (ctl) Is Button Then CType(ctl, Button).BackColor = BUTTON_COLOR End If Next
of course if you are changing the color of a single button, then use
HTHVB Code:
button1.backcolor = system.drawing.color.<somecolor>
kevin




Reply With Quote