Microsoft KB Archive/140292

= How to Create Blinking Text =

Article ID: 140292

Article Last Modified on 2/10/2000

-

APPLIES TO


 * Microsoft Visual FoxPro 3.0 Standard Edition

-



This article was previously published under Q140292



SUMMARY
In FoxPro version 2.x for MS-DOS, you could create blinking text within a screen. However, there is no property in Visual FoxPro that simulates this effect. Additionally, the SET BLINK ON command has no effect on Visual FoxPro objects. This article shows by example how to create a blinking label in a form.



Step-by-Step Example
This example uses a timer object to create the blinking effect on a label object.

 Create a form called Test.scx. Place a label on the form, and change its Caption property to This Label Blinks. Also, change the AutoSize property to true.  Place a timer on the form. In the Timer event, type the following code: THISFORM.Label1.Visible=! THISFORM.Label1.Visible  Set the Interval property of the timer to 1000. Save the form, and run it. The code in the Timer event serves to toggle the Visible property of the label on and off.

Additional query words: VFoxWin

Keywords: KB140292

-

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

© Microsoft Corporation. All rights reserved.