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

📄 frmamoun.frm

📁 A.T.M自动取款机原理,一个利用VBA模拟ATM的取款原理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmAmountWithdrawn 
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   3045
   ClientLeft      =   5250
   ClientTop       =   3585
   ClientWidth     =   4170
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3045
   ScaleWidth      =   4170
   Begin VB.Frame fraMoney 
      Caption         =   "fraMoney"
      Height          =   1215
      Left            =   120
      TabIndex        =   2
      Top             =   1080
      Width           =   3855
      Begin VB.TextBox txtConvertedAmt 
         Height          =   285
         Left            =   2040
         TabIndex        =   4
         Top             =   600
         Width           =   1575
      End
      Begin VB.TextBox txtUSDollarsAmt 
         Height          =   285
         Left            =   240
         TabIndex        =   3
         TabStop         =   0   'False
         Top             =   600
         Width           =   1575
      End
      Begin VB.Label lblCurrency 
         Caption         =   "lblCurrency"
         Height          =   195
         Left            =   2040
         TabIndex        =   6
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label lblUSDollars 
         Caption         =   "美元(USD)"
         Height          =   195
         Left            =   240
         TabIndex        =   5
         Top             =   360
         Width           =   1575
      End
   End
   Begin VB.CommandButton cmdOKEnd 
      Caption         =   "cmdOKEnd"
      Default         =   -1  'True
      Height          =   375
      Left            =   2880
      TabIndex        =   1
      Top             =   2520
      Width           =   1095
   End
   Begin VB.Image imgFlag 
      BorderStyle     =   1  'Fixed Single
      Height          =   735
      Left            =   120
      Stretch         =   -1  'True
      Top             =   120
      Width           =   735
   End
   Begin VB.Label lblAmountWith 
      Caption         =   "lblAmountWith"
      Height          =   735
      Left            =   1080
      TabIndex        =   0
      Top             =   120
      Width           =   2895
   End
End
Attribute VB_Name = "frmAmountWithdrawn"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdOKEnd_Click()
    ' 要播放声音,必须有声卡和 Microsoft ADPCM Audio CODEC 驱动程序
    ' 该驱动程序包含在 Windows 95 和 Windows NT 3.51 或更高的版本中
    BeginPlaySound i
    MsgBox LoadResString(8 + i)   ' 显示一条感谢信息。
    Unload Me
End Sub

Private Sub Form_Load()
    Dim ConversionValue As Currency
    ConversionValue = ConversionTable((i - 16) \ 32)
    imgFlag = LoadResPicture(i, vbResBitmap)
    lblAmountWith = LoadResString(9 + i) & " " & _
        IIf(frmInput.optChecking, LoadResString(3 + i), LoadResString(4 + i))
    lblCurrency = LoadResString(10 + i)
    cmdOKEnd.Caption = LoadResString(6 + i)
    fraMoney = "1 USD ($) = " & CStr(ConversionValue) & " " & lblCurrency.Caption
    txtUSDollarsAmt = Val(frmInput.txtUSDollarsAmt.Text)
    txtConvertedAmt = ConversionValue * CCur(txtUSDollarsAmt.Text)
    SetCursor cmdOKEnd
    
    ' 对 DBCS 必须在加载工程时由 VB 设置字体名
    ' 要使例子可以在任何地方工作,必须由程序设置 font 属性
    lblAmountWith.FontBold = True
End Sub

⌨️ 快捷键说明

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