Steve:
>When I tried your suggestion, it always seems that the actual workarea is one tab behind.
With my code snippet, I was trying to provide the bigger picture solution, leaving you to the smaller details <s>. Did you actually call a system refresh after assigning the new value to the form's cWorkarea property? Just changing the property without forcibly telling the system "there and then" may be part of the problem. If you don't, then the new cWorkarea value may get "noticed" too late
Best
-=Gary