FIX: WindowType Changed at Run Time Can't Be Changed BackID: Q141558 3.00 3.00b WINDOWS kbprg kbbuglist The information in this article applies to:
SYMPTOMSYou attempt to change the WindowType of a running form from modeless to modal and then back to modeless. On the switch from modeless to modal, you succeed. But the attempt to switch the now modal form to modeless fails.
WORKAROUNDAlthough there isn't much call to do this at run time, the switch is one way only. There is no way to programmatically change it back.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem has been fixed in Visual FoxPro 5.0.
MORE INFORMATIONThe WindowType of a form should be a property you set a design time; not run time.
Steps to Reproduce Problem1. Create a new form, and set the form's WindowType property to Modeless. 2. Place a command button on the form. In the Click method, add the 3. Change the Caption property to Modal. Place a second command button on
4. Change the Caption property to Modeless. Place a third command button on
5. Run the form. If you click the Release command button, the form closes
Additional reference words: 3.00 3.00b VFoxWin buglist3.00
buglist3.00b kbvfp300 kbvfp300b kbVfp500fix
KBCategory: kbprg kbbuglist
KBSubcategory: FxprgGeneral
|
Last Reviewed: October 31, 1998 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |