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

📄 gdq3.frm

📁 一个计算任意位PI的程序
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "计算圆周率"
   ClientHeight    =   5205
   ClientLeft      =   165
   ClientTop       =   870
   ClientWidth     =   7980
   LinkTopic       =   "Form1"
   ScaleHeight     =   5205
   ScaleWidth      =   7980
   StartUpPosition =   3  '窗口缺省
   Begin VB.ListBox List1 
      Height          =   4020
      Left            =   120
      TabIndex        =   0
      Top             =   600
      Width           =   7455
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "Label1"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   330
      Left            =   405
      TabIndex        =   1
      Top             =   120
      Width           =   2805
   End
   Begin VB.Menu PI 
      Caption         =   "Pi处理(&P)"
      Begin VB.Menu BIT 
         Caption         =   "确定计算位数"
         Shortcut        =   ^I
      End
      Begin VB.Menu COM 
         Caption         =   "开始计算"
         Shortcut        =   ^P
      End
      Begin VB.Menu CLS 
         Caption         =   "清屏"
         Shortcut        =   ^C
      End
      Begin VB.Menu EXT 
         Caption         =   "退出"
         Shortcut        =   ^E
      End
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public m
Private Sub BIT_Click()
 s = InputBox("输入计算位数:", " ", 1200, 3000, 4000)
  m = Val(s)
End Sub

Private Sub CLS_Click()
  Form1.Label1.Caption = ""
  For i = 1 To Form1.List1.ListCount
    List1.RemoveItem 0
  Next i
End Sub

Private Sub COM_Click()
  List1.Visible = True: Label1.Visible = True
  Call gdqpi(m)
End Sub

Private Sub EXT_Click()
  Form1.CLS: End
End Sub

Private Sub Form_Load()
  List1.Visible = False: Label1.Visible = False
End Sub

⌨️ 快捷键说明

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