?? frmatt.frm
字號:
VERSION 5.00
Begin VB.Form frmAtt
Caption = "發送附件"
ClientHeight = 3270
ClientLeft = 60
ClientTop = 345
ClientWidth = 8520
LinkTopic = "Form1"
ScaleHeight = 3270
ScaleWidth = 8520
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton cmdDel
Caption = "<<"
Height = 435
Left = 4560
TabIndex = 5
Top = 1680
Width = 795
End
Begin VB.CommandButton cmdAdd
Caption = ">>"
Height = 435
Left = 4560
TabIndex = 4
Top = 1020
Width = 795
End
Begin VB.ListBox LstAtt
Height = 2790
Left = 5460
TabIndex = 3
Top = 420
Width = 2955
End
Begin VB.FileListBox File1
Height = 2820
Left = 2520
TabIndex = 2
Top = 420
Width = 1935
End
Begin VB.DirListBox Dir1
Height = 2340
Left = 120
TabIndex = 1
Top = 900
Width = 2235
End
Begin VB.DriveListBox Drive1
Height = 315
Left = 120
TabIndex = 0
Top = 420
Width = 2295
End
Begin VB.Label Label1
Caption = "附件"
BeginProperty Font
Name = "幼圓"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 315
Left = 5460
TabIndex = 6
Top = 120
Width = 1995
End
End
Attribute VB_Name = "frmAtt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdAdd_Click()
If File1.FileName <> "" Then
If Right(File1.Path, 1) <> "\" Then
LstAtt.AddItem File1.Path & "\" & File1.FileName
Else
LstAtt.AddItem File1.Path & File1.FileName
End If
End If
End Sub
Private Sub cmdDel_Click()
If LstAtt.ListIndex >= 0 Then
LstAtt.RemoveItem LstAtt.ListIndex
End If
End Sub
Private Sub Dir1_Change()
File1.Path = Dir1.Path
End Sub
Private Sub Drive1_Change()
Dir1.Path = Drive1.Drive
End Sub
Private Sub File1_DblClick()
If File1.FileName <> "" Then
If Right(File1.Path, 1) <> "\" Then
LstAtt.AddItem File1.Path & "\" & File1.FileName
Else
LstAtt.AddItem File1.Path & File1.FileName
End If
End If
End Sub
Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim i As Integer
For i = 0 To LstAtt.ListCount - 1
smtp.cobAtt.AddItem LstAtt.List(i)
Next i
End Sub
Private Sub LstAtt_DblClick()
If LstAtt.ListIndex >= 0 Then
LstAtt.RemoveItem LstAtt.ListIndex
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -