The information in this article applies to:
SUMMARYThe sample code below shows how to start a Visual Basic screen saver by sending a Windows message to the Control-menu box on the form. MORE INFORMATION
Microsoft Windows starts screen savers through the System-menu box on a
form. The System-menu box is also known as the Control-menu box in Visual
Basic. You can send Windows messages to the Control-menu box by using the
SendMessage Windows API (application programming interface) function.
In the following example, a command button starts the Form1 screen saver:
You can find two sample programs and a complete explanation showing how to
write your own screen savers in Visual Basic in the following book:
"Visual Basic Workshop 3.0" by John C. Craig, published by Microsoft Press. Additional query words: 3.00 .SCR TOPMOST SETWINDOWPOS SCRNSAVE timer
Keywords : kbcode PrgCtrlsStd |
Last Reviewed: September 3, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |