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

📄 frmfwconfig.frm

📁 vb 调用IBM domino server数据库的例子
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmFwConfig 
   Caption         =   "配置文档"
   ClientHeight    =   9810
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   9945
   LinkTopic       =   "Form1"
   ScaleHeight     =   9810
   ScaleWidth      =   9945
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command1 
      Caption         =   "Command1"
      Height          =   975
      Left            =   1440
      TabIndex        =   3
      Top             =   4080
      Width           =   3495
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   4680
      TabIndex        =   2
      Text            =   "Text3"
      Top             =   720
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      Height          =   375
      Left            =   2400
      TabIndex        =   1
      Text            =   "Text2"
      Top             =   720
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Height          =   495
      Left            =   600
      MultiLine       =   -1  'True
      TabIndex        =   0
      Text            =   "frmFwConfig.frx":0000
      Top             =   600
      Width           =   1215
   End
   Begin VB.Label Label2 
      Caption         =   "Label2"
      Height          =   735
      Left            =   3240
      TabIndex        =   5
      Top             =   2160
      Width           =   1815
   End
   Begin VB.Label Label1 
      Caption         =   "Label1"
      Height          =   495
      Left            =   1080
      TabIndex        =   4
      Top             =   2280
      Width           =   1455
   End
End
Attribute VB_Name = "frmFwConfig"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
     Dim Doc As New Document
     Dim Visi As Boolean
     
     Private Sub Command1_Click()
       Dim Dlg As Word.Dialog
       Doc.Range = Text1.Text
       Set Dlg = Doc.Application.Dialogs(wdDialogDocumentStatistics)
       Dlg.Execute                  '统计单词和字符
       Text2.Text = Dlg.Words        '显示单词数
       Text3.Text = Dlg.Characters     '显示字符数
     End Sub
     
      Private Sub Form_load()
        Form1.Caption = "调用 Word 2000"
        Text1.Text = ""
        Text2.Text = ""
        Text3.Text = ""
        Command1.Caption = "统计单词"
        Label1.Caption = "单词数"
        Label2.Caption = "字符数"
        Visi = Doc.Application.Visible
      End Sub

      Private Sub Form_Unload(Cancel As Integer)
        If Visi Then
          Doc.Close savechanges:=False
          Else
          Doc.Application.Quit savechanges:=False
        End If
      End Sub

⌨️ 快捷键说明

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