图 A.3 示出了取自 Blanker 应用程序示例的 Blanker.frm 窗体。
图 A.3 取自 Blanker.vbp 应用程序示例的窗体示例

这里是保存在 Visual Basic 中的 Blanker 窗体的部分。移动到保存空间的窗体部分用竖的省略号表明。
VERSION 6.00 Begin VB.Form DemoForm BackColor = &H00000000& Caption = "Screen Blanker Demo" ClientHeight = 960 ClientLeft = 1965 ClientTop = 1965 ClientWidth = 7470 ForeColor = &H00000000& Begin Property Font name = "MS Sans Serif" charset = 0 . . . End Property Height = 5115 Icon = "Blanker.frx":0018 Left = 900 LinkMode = 1 '源LinkTopic = "Form1"ScaleHeight = 4425ScaleWidth = 7470Top = 1335Width = 7590Begin VB.Timer Timer1Interval = 1Left = 6960Top = 120EndBegin VB.CommandButton cmdStartStopBackColor = &H00000000&Caption = "Start Demo"Default = -1Height = 390Left = 240TabIndex = 0Top = 120Width = 1830EndBegin VB.PictureBox picBallAutoSize = -1 ' TrueBackColor = &H00000000&BorderStyle = 0 ' NoneForeColor = &H00FFFFFF&Height = 465Left = 1800Picture = "Blanker.frx":0788ScaleHeight = 465ScaleWidth = 465TabIndex = 1Top = 720Visible = 0 ' FalseWidth = 465End...Begin VB.Menu mnuOptionCaption = "&Options"Begin VB.Menu mnuLineCtlDemoCaption = "&Jumpy Line"Checked = -1 ' TrueEndBegin VB.Menu mnuCtlMoveDemoCaption = "Re&bound"End...Begin VB.Menu mnuExitCaption = "E&xit"EndEndEnd...Attribute VB_Name = "DemoForm"Attribute VB_Creatable = FalseAttribute VB_Exposed = FalseDim Shared FrameNumDim Shared XPosDim Shared YPosDim Shared DoFlagDim Shared Motion...Sub CircleDemo ()Dim RadiusR = 255 * RndG = 255 * RndB = 255 * RndXPos = ScaleWidth / 2YPos = ScaleHeight / 2Radius = ((YPos * 0.9) + 1) * RndCircle (XPos, YPos), Radius, RGB (R, G, B)End Sub...Private Sub Timer1_Timer ()...End Sub