?? form2.frm
字號:
VERSION 5.00
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form Form2
Caption = "分析圖象"
ClientHeight = 5730
ClientLeft = 60
ClientTop = 450
ClientWidth = 5835
LinkTopic = "Form2"
ScaleHeight = 5730
ScaleWidth = 5835
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Caption = "畫圖"
Height = 375
Left = 240
TabIndex = 2
Top = 1440
Width = 855
End
Begin VB.Timer Timer1
Enabled = 0 'False
Interval = 500
Left = 240
Top = 240
End
Begin VB.CommandButton Command1
Caption = "退 出"
Height = 375
Left = 240
TabIndex = 1
Top = 2160
Width = 855
End
Begin MSChart20Lib.MSChart MSChart1
Height = 5655
Left = 0
OleObjectBlob = "Form2.frx":0000
TabIndex = 0
ToolTipText = "環境數據采集圖線"
Top = 0
Width = 5775
End
End
Attribute VB_Name = "Form2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
Dim fso As New FileSystemObject, fil As File, ts As TextStream, s As String
Dim arrPrices(1 To 10) As Integer
Dim i As Integer
fil = fso.GetFile("D:\test.txt")
ts = fil.OpenAsTextStream(ForReading)
s = ts.readline
For i = 10 To 100 Step 10
arrPrices(i) = Mid(s, i / 10, 2)
Time.Enabled = True
Next i
MSChart1.ChartData = arrPrices
End Sub
Private Sub MSChart1_OLEStartDrag(Data As MSChart20Lib.DataObject, AllowedEffects As Long)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -