It works. Thanks Sergey.
>Hi Ramil,
>
>The same bug exists for the label. May feeling is that it's actually the same bug. You can put following code in the pageframe init to workaround it.
FOR EACH loPage in This.Pages
> loPage.Enabled = loPage.Enabled
>ENDFOR
>
>
>>Hi all,
>>
>>I have a problem with the Disabled color of a Page caption when a form is created from a class. To reproduce:
>>1. Create a form.
>>2. Add a pageframe with two pages.
>>3. Disable Page1 (Enabled=.F.)
>>4. Run the form.
>>Notice that Page1 is disabled and the caption is grayed out.
>>
>>5. Save the form as class.
>>6. Create form programatically.
>>7. oForm.Show() to display the form.
>>Notice that Page1 is disabled but the caption is not grayed out.
>>
>>Version: VFP 8.
ramil
~~ learning to stand still