?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 3090
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 3090
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private WithEvents Timer1 As Timer
Attribute Timer1.VB_VarHelpID = -1
Dim aa$, i&
Private Sub Form_Load()
aa = "能否設置部分文字的顏色呢?"
Me.AutoRedraw = True
Set Timer1 = Controls.Add("vb.timer", "Timer1")
Timer1.Interval = 100
Randomize
End Sub
Private Sub Timer1_Timer()
Me.CurrentX = 1200: Me.CurrentY = 1500 'Label的位置
For i = 1 To Len(aa)
Me.ForeColor = QBColor(Int(Rnd * 16))
Me.Print Mid(aa, i, 1);
Next i
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -