CdromRemoveTo.frm
上传用户:dohkov
上传日期:2007-06-18
资源大小:35k
文件大小:3k
- 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