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

📄 dialing.frm

📁 不错的一个VB菜单设计 界面和功能都不错
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmDial 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Dialing..."
   ClientHeight    =   1440
   ClientLeft      =   3765
   ClientTop       =   3720
   ClientWidth     =   3510
   Icon            =   "Dialing.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   PaletteMode     =   1  'UseZOrder
   ScaleHeight     =   1440
   ScaleWidth      =   3510
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton cmdDial 
      Caption         =   "&Dial..."
      Default         =   -1  'True
      Height          =   375
      Left            =   1133
      TabIndex        =   2
      Top             =   945
      Width           =   1215
   End
   Begin VB.TextBox txtNumber 
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      Left            =   128
      TabIndex        =   0
      Top             =   375
      Width           =   3255
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "&Phone Number:"
      Height          =   195
      Left            =   120
      TabIndex        =   1
      Top             =   135
      Width           =   1110
   End
End
Attribute VB_Name = "frmDial"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Form_Load()
  Call EnableText
End Sub

Private Sub txtNumber_Change()
  Call EnableText
End Sub

Private Sub cmdDial_Click()
  Dim objDialing As New FLWSystem.FWTAPI
  Dim strBuffer  As String

  Select Case objDialing.Dial(txtNumber.Text, "My App", "My Title", "My comments")
    Case FLWSystem.flwDialNoError
      strBuffer = "No errors"
    Case FLWSystem.flwDialNotInstalled
      strBuffer = "No TAPI support"
    Case FLWSystem.flwDialQueueFull
      strBuffer = "TAPI queue is full"
    Case FLWSystem.flwDialNumberNotValid
      strBuffer = "The number is not valid"
    Case Else
      strBuffer = "Unknown error"
  End Select
  Call MsgBox(strBuffer, vbCritical)
End Sub

Private Sub EnableText()
  cmdDial.Enabled = Len(Trim$(txtNumber)) > 0
End Sub

⌨️ 快捷键说明

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