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

📄 frmmsg.frm

📁 短信群发标准版
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmMsg 
   BackColor       =   &H80000009&
   BorderStyle     =   0  'None
   Caption         =   "地址簿"
   ClientHeight    =   7200
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   9450
   LinkTopic       =   "Form1"
   ScaleHeight     =   7200
   ScaleWidth      =   9450
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.TextBox txtMessage 
      Appearance      =   0  'Flat
      BeginProperty Font 
         Name            =   "Arial"
         Size            =   12
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3495
      Left            =   2040
      MaxLength       =   70
      MultiLine       =   -1  'True
      TabIndex        =   13
      Top             =   2160
      Width           =   6735
   End
   Begin VB.CommandButton cmdExit 
      Caption         =   "退出"
      Height          =   495
      Left            =   120
      TabIndex        =   7
      Top             =   6000
      Width           =   1215
   End
   Begin VB.CommandButton cmdSend 
      Caption         =   "发送"
      Height          =   495
      Left            =   120
      TabIndex        =   6
      Top             =   5400
      Width           =   1215
   End
   Begin VB.CommandButton cmdMain 
      Caption         =   "首页"
      Enabled         =   0   'False
      Height          =   495
      Left            =   120
      TabIndex        =   5
      Top             =   1800
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "设备管理"
      Enabled         =   0   'False
      Height          =   495
      Left            =   120
      TabIndex        =   4
      Top             =   2400
      Width           =   1215
   End
   Begin VB.CommandButton cmdContent 
      Caption         =   "发送内容"
      Height          =   495
      Left            =   120
      TabIndex        =   3
      Top             =   3000
      Width           =   1215
   End
   Begin VB.CommandButton Command4 
      Caption         =   "发送列表"
      Enabled         =   0   'False
      Height          =   495
      Left            =   120
      TabIndex        =   2
      Top             =   3600
      Width           =   1215
   End
   Begin VB.CommandButton Command5 
      Caption         =   "常用短语"
      Enabled         =   0   'False
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   4200
      Width           =   1215
   End
   Begin VB.CommandButton cmdBook 
      Caption         =   "地址簿"
      Height          =   495
      Left            =   120
      TabIndex        =   0
      Top             =   4800
      Width           =   1215
   End
   Begin VB.Image Image1 
      Height          =   885
      Left            =   120
      Picture         =   "frmMsg.frx":0000
      Top             =   720
      Width           =   9255
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Height          =   255
      Left            =   2160
      TabIndex        =   14
      Top             =   5880
      Width           =   4815
   End
   Begin VB.Shape Shape1 
      BackColor       =   &H00FFFFC0&
      BackStyle       =   1  'Opaque
      Height          =   4695
      Left            =   1560
      Top             =   1800
      Width           =   7695
   End
   Begin VB.Label Label11 
      BackColor       =   &H00A27E66&
      Caption         =   "X"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   8760
      TabIndex        =   12
      Top             =   120
      Width           =   135
   End
   Begin VB.Label Label10 
      BackColor       =   &H00A27E66&
      Height          =   255
      Left            =   8520
      TabIndex        =   11
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label13 
      Appearance      =   0  'Flat
      BackColor       =   &H00A27E66&
      Caption         =   " newking@online.sh.cn"
      BeginProperty Font 
         Name            =   "Tahoma"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   7440
      TabIndex        =   10
      Top             =   6840
      Width           =   1695
   End
   Begin VB.Line Line16 
      X1              =   5640
      X2              =   6240
      Y1              =   840
      Y2              =   840
   End
   Begin VB.Line Line15 
      X1              =   4440
      X2              =   5160
      Y1              =   840
      Y2              =   840
   End
   Begin VB.Line Line14 
      X1              =   3120
      X2              =   4080
      Y1              =   840
      Y2              =   840
   End
   Begin VB.Line Line13 
      X1              =   1560
      X2              =   2640
      Y1              =   840
      Y2              =   840
   End
   Begin VB.Label Label12 
      BackColor       =   &H00A27E66&
      Caption         =   " Demo 版  "
      ForeColor       =   &H8000000E&
      Height          =   255
      Left            =   360
      TabIndex        =   9
      Top             =   6840
      Width           =   735
   End
   Begin VB.Line Line17 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   6900
      Y2              =   6900
   End
   Begin VB.Line Line18 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   7020
      Y2              =   7020
   End
   Begin VB.Line Line19 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   6840
      Y2              =   6840
   End
   Begin VB.Line Line20 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   6960
      Y2              =   6960
   End
   Begin VB.Shape Shape3 
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00A27E66&
      FillStyle       =   0  'Solid
      Height          =   495
      Left            =   0
      Top             =   6720
      Width           =   9495
   End
   Begin VB.Label Label9 
      BackColor       =   &H00A27E66&
      Caption         =   "上海朗力通讯设备有限公司"
      ForeColor       =   &H8000000E&
      Height          =   255
      Left            =   480
      TabIndex        =   8
      Top             =   120
      Width           =   2175
   End
   Begin VB.Line Line8 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   120
      Y2              =   120
   End
   Begin VB.Line Line9 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   240
      Y2              =   240
   End
   Begin VB.Line Line10 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   300
      Y2              =   300
   End
   Begin VB.Line Line11 
      BorderColor     =   &H80000005&
      X1              =   120
      X2              =   9360
      Y1              =   180
      Y2              =   180
   End
   Begin VB.Shape Shape2 
      BorderStyle     =   0  'Transparent
      FillColor       =   &H00A27E66&
      FillStyle       =   0  'Solid
      Height          =   495
      Left            =   0
      Top             =   0
      Width           =   9495
   End
End
Attribute VB_Name = "frmMsg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub txtBook_Click()
    frmCustom.Show
    Me.Hide
End Sub

Private Sub cmdBook_Click()
    frmCustom.Show
    Me.Hide
End Sub

Private Sub cmdExit_Click()
    End
End Sub

Private Sub cmdSend_Click()
    Dim num As Integer
    Dim rst As Recordset
    Dim msg As String

    msg = frmMsg.txtMessage
    If Trim(msg) <> "" Then
        Set rst = db.OpenRecordset("select * from customer")
        While Not rst.EOF
            Call Sendsms("8613800210500", rst("mobile"), msg)
            rst.MoveNext
        Wend
        MsgBox "发送完成"
    Else
        MsgBox "要发送的内容不能为空!"
    End If
End Sub

Private Sub txtMessage_Change()
    Label1.Caption = "短消息为中文,允许总长度70字,当前长度为" & Len(txtMessage.Text) & "字。"
End Sub


Private Sub Form_Load()
    Label1.Caption = "短消息为中文,允许总长度70字,当前长度为" & Len(txtMessage.Text) & "字。"
    Line13.X1 = 0
    Line13.X2 = frmMsg.Width
    Line13.Y1 = frmMsg.Height - 10
    Line13.Y2 = frmMsg.Height - 10

    Line14.X1 = frmMsg.Width - 10
    Line14.X2 = frmMsg.Width - 10
    Line14.Y1 = 0
    Line14.Y2 = frmMsg.Height
    
    Line15.X1 = 0
    Line15.X2 = frmMsg.Width
    Line15.Y1 = frmMsg.Top
    Line15.Y2 = frmMsg.Top
    
    Line16.X1 = frmMsg.Left
    Line16.X2 = frmMsg.Left
    Line16.Y1 = 0
    Line16.Y2 = frmMsg.Height

End Sub
Private Sub Label11_Click()
    End
End Sub

⌨️ 快捷键说明

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