📄 frmsectmenucontact.frm
字号:
VERSION 5.00
Object = "{8937C588-0969-469A-AD32-74D92E7FBFDC}#1.0#0"; "ComboListDrawing.ocx"
Begin VB.Form FrmSelectMutiContact
BorderStyle = 3 'Fixed Dialog
Caption = "选择收件人"
ClientHeight = 3105
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 6030
Icon = "FrmSectMenuContact.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3105
ScaleWidth = 6030
ShowInTaskbar = 0 'False
Begin VB.CommandButton CancelButton
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 1
Top = 960
UseMaskColor = -1 'True
Width = 1215
End
Begin VB.CommandButton OKButton
Height = 375
Left = 4680
Style = 1 'Graphical
TabIndex = 0
Top = 480
UseMaskColor = -1 'True
Width = 1215
End
Begin ComboListDrawing.ComboListDraw ComboListDraw1
Height = 2415
Left = 240
TabIndex = 3
Top = 480
Width = 4335
_ExtentX = 7646
_ExtentY = 4260
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "Tahoma"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = -2147483630
Style = 7
MaxLength = 0
End
Begin VB.Label Label1
Caption = "请选择收件人:"
Height = 255
Left = 240
TabIndex = 2
Top = 120
Width = 2175
End
End
Attribute VB_Name = "FrmSelectMutiContact"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim mstrsql As String
Dim mLngSelectArray() As Long
Public Enum Action
ok = 1
Cancel = 2
End Enum
Public e_Action As Action
Public Sub ShowMe(strsql As String, ByRef LngSelectArray() As Long)
mstrsql = strsql
ReDim mLngSelectArray(0)
ComboListDraw1.Clear
ComboListDraw1.InitDataList gdbCurrentDB, strsql, -1, False
Show vbModal
LngSelectArray = mLngSelectArray
End Sub
Private Sub CancelButton_Click()
ReDim mLngSelectArray(0)
e_Action = Cancel
Unload Me
End Sub
Private Sub Form_Load()
OKButton.Picture = LoadResPicture(1001, vbResBitmap)
CancelButton.Picture = LoadResPicture(1002, vbResBitmap)
Me.Icon = LoadResPicture(3004, vbResIcon)
End Sub
Private Sub OKButton_Click()
e_Action = ok
Dim i As Long
ReDim mLngSelectArray(0)
For i = 0 To ComboListDraw1.ListCount
If ComboListDraw1.Selected(i) Then
ReDim Preserve mLngSelectArray(UBound(mLngSelectArray) + 1)
mLngSelectArray(UBound(mLngSelectArray)) = ComboListDraw1.ItemData(i)
End If
Next i
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -