Microsoft KB Archive/185187

= BUG: Pageframe Subclass Invisible Until Clicked =

Article ID: 185187

Article Last Modified on 12/11/1999

-

APPLIES TO


 * Microsoft Visual FoxPro 5.0 Standard Edition
 * Microsoft Visual FoxPro 5.0a
 * Microsoft Visual FoxPro 6.0 Professional Edition

-



This article was previously published under Q185187



SYMPTOMS
A PageFrame subclass is not visible, at design and run-time, even if its PageCount property is set to a value higher than 0.



CAUSE
The problem described in this article occurs if the PageCount property of the Parent class is set to 0.



RESOLUTION
Do not set the PageCount property of the Parent Class to 0.



STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article.



Steps to Reproduce Behavior
  Create a class myPage1 using the following line of code: CREATE CLASS myPage1 OF myclib AS PAGEFRAME  When the Class Designer opens, reset the PageCount to the default value. You can do this by right-clicking on the PageCount property and selecting the "Reset To Default" option from the shortcut menu. Save the class and close the Class Designer.  Create a class myPage2 with the code below: CREATE CLASS myPage2 OF myclib AS myPage1 FROM myclib  When the Class Designer appears, set the Pagecount to three.</li> Save the class and close the Class Designer.</li> Create a form and place each of the classes, myPage1 and myPage2, onto the form.

NOTE: Both PageFrames are not visible.</li> Run the Form.

NOTE: Both the PageFrames are still not visible.</li> Click in the area on the form where the PageFrame SubClass should be and it becomes visible.</li></ol>

The PageFrame SubClass, myPage2, should be visible at design and run-time.

Additional query words: vfoxwin kbvfp500 kbvfp500a kbvfp600

Keywords: kbbug kbnofix KB185187

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.