Jimi,
I don't have that problem. However I think replacing the shape with a container would solve it.
Cetin
>Oops sorry, I have missed a shape in the container. *blush*
>
>the color is correct when the textbox are enabled, thank you very much!
>
>But now some textbox have white backcolor when it is DISABLED, which is also the color of the shape ;-(
>
>what can I do now?
>
>Jimi
>
>>Hi Cetin,
>>
>>I have a form, in the form there is a container with some textboxes included in it. I have set the container to have backcolor=white and backstyle=0. Every textbox in it has default color and backstyle=1.
>>
>>At runtime, my program will add another container to the form. Which also have backcolor=white and backstyle=0. In this container I added a grid programatically too.
>>
>>The two containers are NOT overlapped.
>>
>>Those textboxes are initially disabled, after clicking a button I'll run thisform.TextboxContainer.setall("enabled", 1, "textbox"), but the same problem still exist.
>>
>>One more thing, the strange color of the textbox shouldn't come from the backcolor of the container, because i have tried to set the backcolor of the container to green, but the textbox backcolor still is gray when gotfocus.
>>
>>I wish these information is enough to find out the reason, and thanks for your attention :)
>>
>>Jimi