>>If i want to set background, foreground color of all textboxes in a form as per the users selection, how can i find out all the textboxes present in a form. Is there any way to loop through all the textboxes.
>>
>>Can I use variables while desiging the form for the background and assign it in the loop ?
>>
>>Pl. help.
>>
>>Thanks in advance.
>>
>>Regards
>
>Check SetAll() nmethod of the form, this will works only if all textboxes are placed directly in the form, not in some other container. Other way is to crate a Method that will loop through all controls.
hi Borislav,
Form.SetAll() works for me, even if the textboxes are on pageframes, containers, etc. iow, SetAll does the loop for you
Gregory