⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 edit.frm

📁 两个VB播放器 两个VB播放器 两个VB播放器 两个VB播放器
💻 FRM
字号:
VERSION 5.00
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
Begin VB.Form Dialog7 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "编辑列表"
   ClientHeight    =   5715
   ClientLeft      =   2760
   ClientTop       =   3750
   ClientWidth     =   5955
   Icon            =   "Edit.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "Edit.frx":1CFA
   ScaleHeight     =   5715
   ScaleWidth      =   5955
   ShowInTaskbar   =   0   'False
   Begin MSComDlg.CommonDialog cdg 
      Left            =   2400
      Top             =   3000
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   393216
   End
   Begin VB.CommandButton Command4 
      Caption         =   "添加"
      Height          =   375
      Left            =   1200
      TabIndex        =   4
      Top             =   5280
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "删除"
      Height          =   375
      Left            =   2400
      TabIndex        =   3
      Top             =   5280
      Width           =   1095
   End
   Begin VB.ListBox List1 
      BackColor       =   &H80000006&
      ForeColor       =   &H0000C000&
      Height          =   5100
      Left            =   0
      MultiSelect     =   1  'Simple
      TabIndex        =   2
      Top             =   0
      Width           =   5895
   End
   Begin VB.CommandButton Command3 
      Caption         =   "退出(&E)"
      Height          =   375
      Left            =   4800
      TabIndex        =   1
      Top             =   5280
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "保存更改"
      Height          =   375
      Left            =   3600
      TabIndex        =   0
      Top             =   5280
      Width           =   1095
   End
End
Attribute VB_Name = "Dialog7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False



Private Sub Command1_Click()
  On Error Resume Next
  List1.RemoveItem List1.ListIndex
  MsgBox "请在我的媒体库中删除该结点", vbOKOnly + vbExclamation, "提示"
  Form6.SetFocus
End Sub

Private Sub Command2_Click()
  On Error Resume Next
  Dim nextline As String
  Dim i As Integer
  i = 0
  Form6.List1.Clear
For i = 0 To List1.ListCount - 1
  Form6.List1.AddItem List1.List(i)
Next i
Open App.Path & "\temp\" & Form6.TreeView1.SelectedItem.Text & ".m3u" For Output As #4
   For i = 0 To List1.ListCount - 1
      Print #4, List1.List(i)
   Next i
Close #4
 Unload Me
 Set Dialog7 = Nothing
End Sub

Private Sub Command3_Click()
  Unload Me
End Sub

Private Sub Command4_Click()
 MsgBox "请在我的媒体库中添加文件", vbOKOnly + vbInformation, "提示"
 Form6.SetFocus
End Sub

Private Sub Form_Load()
  On Error Resume Next
  Dim dir_1 As String
  Dim nextline As String
  dir_1 = Dir(App.Path & "\temp\" & Form6.TreeView1.SelectedItem.Text & ".m3u")
 If dir_1 <> "" Then
   If FileLen(App.Path & "\temp\" & Form6.TreeView1.SelectedItem.Text & ".m3u") <> 0 Then
    Open App.Path & "\temp\" & Form6.TreeView1.SelectedItem.Text & ".m3u" For Input As #1
       List1.Clear
       Do While Not EOF(1)
         Line Input #1, nextline
         List1.AddItem nextline
       Loop
    Close #1
  End If
 Else
    Exit Sub
 End If
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -