DOCUMENT:Q191071 07-AUG-1998 [vbwin] TITLE :BUG: Controls Do Not Refresh After Exit From Screen Saver on NT PRODUCT :Microsoft Visual Basic for Windows PROD/VER:WINDOWS:5.0 OPER/SYS:WINDOWS KEYWORDS:kbVBp kbVBp600bug kbVBp500bug kbScreenSaver ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Learning, Professional, and Enterprise Editions for Windows, version 5.0 --------------------------------------------------------------------- SYMPTOMS ======== Controls on a form whose ClipControls property is set to False may not refresh properly after the Screen Saver is activated and then deactivated. When the mouse is moved to dismiss the Screen Saver, the form reappears but some controls are not redrawn properly. For example, Textbox controls do not retain their 3-D appearance. Programmatically refresh the form to cause the controls to be drawn properly. This problem only occurs on Windows NT 4.0. The problem does not occur on Windows 95 or Windows 98. RESOLUTION ========== Set the ClipControls property of the form to True (the default value). STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ Steps to Reproduce Behavior --------------------------- 1. On Windows NT 4.0 Display Properties, enable the "Blank Screen" Screen Saver and set Wait to one minute. 2. Start a new Standard EXE project in Visual Basic. Form1 is created by default. 3. Set the ClipControls property of Form1 to False. 4. Add a Textbox control to Form1. 5. Run the project and wait one minute for the Screen Saver to activate. 6. Move the mouse to dismiss the screen saver. Notice the textbox has a flat (2-D appearance) instead of a 3-D appearance. REFERENCES ========== For more information, please search the Visual Basic Help Topics on "ClipControls property." Additional query words: ====================================================================== Keywords : kbVBp kbVBp600bug kbVBp500bug kbScreenSaver Version : WINDOWS:5.0 Platform : WINDOWS Issue type : kbbug Solution Type : kbpending ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY. Copyright Microsoft Corporation 1998.