?? cdromremoveto.frm
字號:
VERSION 5.00
Begin VB.Form CdromRemoveTo
BorderStyle = 1 'Fixed Single
Caption = "移至"
ClientHeight = 1200
ClientLeft = 45
ClientTop = 330
ClientWidth = 4065
ControlBox = 0 'False
Icon = "CdromRemoveTo.frx":0000
LinkTopic = "Form3"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1200
ScaleWidth = 4065
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
Cancel = -1 'True
Caption = "取消"
Height = 375
Left = 2760
TabIndex = 2
Top = 600
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確定"
Default = -1 'True
Height = 375
Left = 2760
TabIndex = 1
Top = 120
Width = 1095
End
Begin VB.ComboBox Combo1
Height = 300
Left = 240
Style = 2 'Dropdown List
TabIndex = 0
Top = 600
Width = 2295
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "請選擇要移到的類別:"
Height = 180
Left = 240
TabIndex = 3
Top = 240
Width = 2280
WordWrap = -1 'True
End
End
Attribute VB_Name = "CdromRemoveTo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
For i = 2 To MainForm.TreeView1.Nodes.Count
If MainForm.TreeView1.SelectedItem.Key = MainForm.TreeView1.Nodes.Item(i).Key Then
temptext = MainForm.TreeView1.Nodes(i).Text
tempkey = MainForm.TreeView1.Nodes(i).Key
Pos = InStr(1, tempkey, "@@@@@***##")
tempkey = "子光盤光盤庫" + Combo1.List(Combo1.ListIndex) + Mid(tempkey, Pos)
MainForm.TreeView1.Nodes.Remove i
Set nox = MainForm.TreeView1.Nodes.Add("光盤庫" + Combo1.List(Combo1.ListIndex), tvwChild, tempkey, temptext, 1)
MainForm.TreeView1.SelectedItem = nox
Unload Me
End If
Next
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
Label1.Caption = " 請選擇光盤 " + Chr(34) + MainForm.TreeView1.SelectedItem.Text + Chr(34) + " 要移至的位置"
CencerForm Me
For i = 2 To MainForm.TreeView1.Nodes.Count
If Left(MainForm.TreeView1.Nodes.Item(i).Key, 3) = "光盤庫" Then
Combo1.AddItem MainForm.TreeView1.Nodes.Item(i).Text
End If
Next
Combo1.ListIndex = 0
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -