Changing an entire form's background color

Hi,

I’m currently using a global and the rowBGColorCalculation bit to change the background color for an entire form programmatically. I had also thought of putting an element in the background and affecting that element’s color using a method, but if the user resizes the window to show an area bigger than said element, the form’s original background color will show at certain places on the screen, and me no want that… :)

So my question is: Is there a way to affect an entire form’s background color programmatically more directly, without having to use a global and the rowBGColorCalc - something like ```
forms[frm].bgcolor = “AABBCC”


Even better would be a way to affect the different form parts individually using a method - now that would be cool! <img src="{SMILIES_PATH}/icon_cool.gif" alt="8)" title="Cool" /> 

Thanks,

Ben

LOGIsoft:
if the user resizes the window to show an area bigger than said element, the form’s original background color will show at certain places on the screen, and me no want that… :)

Does the element have it’s anchors enabled at all 4 sides?

Thanks Joas, that is a great workaround (using the anchors).

However, now the rectangle jumps to the foreground after changing color, even though I chose ‘Send to back’. I tried putting an UpdateUI() step in my method afterwards, but it doesn’t help, wether in Developer or Client. Any ideas?

TIA,

Ben