>for each loControl in this.Controls > if left(lower(loControl.class),2)='bt' && BtCrit classes > loControl.SetDefaultState() > endif >next >If you have alot of controls you may want to look at the performance. I would think FOR EACH and a TEST would be slower than explicitly calling each control using with...endwith, but it might not be noticable. Just a thought.