thisform.pageframe1.Height - thisform.pageframe1.PageHeightworked for me some time ago. Yes, just made a test (VFP7SP1). Works well. Another idea, if the above code doesn't work for you:
LOCAL lnHeightTabs lnHeightTabs = thisform.pageframe1.PageHeight thisform.pageframe1.tabs = .f. lnHeightTabs = thisform.pageframe1.PageHeight - lnHeightTabs thisform.pageframe1.tabs = .t. MESSAGEBOX( lnHeightTabs )The first code returns 30 in my test, the second 26. It seems that you should add some extra pixels for the borders.
>.PAGEHEIGHT = lnValue
>
>is impossible, since Pageheight is readonly.>thisform.minheight = 100 >thisform.height = 50 >?thisform.height &&100 >>>how about only working with PageHeight? If you specify the minimum pageheight everything should work ok. Or do you have a special need to specify the minimum height of the pageframe itself?