>>>Looks like VFP8 bug with a pageframe to me. Would you please try to replicate?
>>>
>>>Thanks a lot in advance.
>>
>>I don't quite see how you create pages. Are you doing it programmatically?
>>Btw, if you decide to use BindEvent then where you're going to Unbindevent?
>
>No, I have a simple pageframe class with PageCount = 0. I added an instance of this class to a form and set PageCount = 2, set pages' names and captions. When I run my form I see a gray "thing" where the pageframe is supposed to be and I do not see an active page. I think I have to add thisform.pgf.ActivePage = 1 in form's Activate to solve the problem.
>
>Why do you think I have to unbind event? What exactly do you think is a problem?
>
>Thanks.
I vaguely remember some problems with PageCount=0. Could you just set it to 1 in class. You won't use PageCount=0 in actual forms anyway.
In regard to unbindevent, I see that Activate should be triggered in some way, i.e. some code should fire once only and not every time when you activate a page. However, I understand that you may code eventhandler to get this functionality. Frankly, I never subclassed pageframes.
Edward Pikman
Independent Consultant