Ok Nadya, I added the activate code to all 4 pages' activate event and modified it accordingly. I also put the click event code in all pages' click event and modified it accordingly. It works as it should. I emailed my example to you. All it shows is that there must be code someplace else that is interferring...other methods or the pageframe itself or the form?
>Hi Tracy,
>
>Thanks for coming to my rescue. Here is the code in Page3.Activate:
>
>this.fontbold = .t.
>if thisform.nLastActivePage <> 3
> this.click()
> thisform.nLastActivePage = 3
>endif
>
>All other pages have the same code in their click and activate (the page number changes respectively). I check the whole form code, but I think this DataEntry form will make me insane... It doesn't want to behave correctly, and every new test shows new problem..., so I'm fixing them and fixing them and ...
>
>>Hi Nadya,
>>
>>I just put your code on a test form with a 4-page pageframe on it and it worked fine. When I click on page 3, the other pages are disabled AND I cannot click on them. I would look at code elsewhere like in the pageframe somewhere? Or other pages have code that overrides this?
>>
>>Tracy
>>
>>>Hi everybody,
>>>
>>>Here is code from Page3.click event. Similar code is on other pages on pageframe:
>>>
>>>
>>>with this.parent
>>> store .f. to .Page2.fontbold, ;
>>> .Page1.fontbold, ;
>>> .Page4.fontbold, ;
>>> .Page2.enabled, ;
>>> .Page1.enabled, ;
>>> .Page4.enabled
>>>endwith
>>>this.refresh()
>>>
>>>The pages look like disabled, however I still can click on other pages. Is it behavior by design or I do something wrong?
>>>
>>>Thanks in advance.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"