📄 form kwitansi.frm
字号:
VERSION 5.00
Begin VB.Form Form1
BackColor = &H00000000&
Caption = "Form1"
ClientHeight = 4980
ClientLeft = 60
ClientTop = 390
ClientWidth = 9420
LinkTopic = "Form1"
ScaleHeight = 4980
ScaleWidth = 9420
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command2
BackColor = &H00C0E0FF&
Caption = "&Clear"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 5040
MaskColor = &H00FFFF80&
Style = 1 'Graphical
TabIndex = 5
Top = 2640
Width = 1455
End
Begin VB.CommandButton Command1
BackColor = &H00C0E0FF&
Caption = "&Exit"
BeginProperty Font
Name = "MS Sans Serif"
Size = 13.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 6720
MaskColor = &H00FFFF80&
Style = 1 'Graphical
TabIndex = 4
Top = 2640
Width = 1455
End
Begin VB.Timer tmrConverter
Interval = 1
Left = 7200
Top = 600
End
Begin VB.TextBox txtConverted
Appearance = 0 'Flat
BackColor = &H00FFFFFF&
BorderStyle = 0 'None
BeginProperty Font
Name = "Courier New"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 1335
Left = 1440
MultiLine = -1 'True
TabIndex = 1
TabStop = 0 'False
ToolTipText = "Converted text box"
Top = 1200
Width = 6735
End
Begin VB.TextBox txtWhole
Alignment = 1 'Right Justify
BeginProperty Font
Name = "Courier New"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 1440
MaxLength = 15
TabIndex = 0
ToolTipText = "Type amount here"
Top = 600
Width = 4425
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "Rp."
BeginProperty Font
Name = "Estrangelo Edessa"
Size = 18
Charset = 1
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 600
TabIndex = 3
Top = 600
Width = 495
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Terbilang"
BeginProperty Font
Name = "Estrangelo Edessa"
Size = 15.75
Charset = 1
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Left = 240
TabIndex = 2
Top = 1200
Width = 1215
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
End
End Sub
Private Sub Command2_Click()
txtWhole.Text = ""
txtConverted.Text = ""
txtWhole.SetFocus
End Sub
Private Sub Form_Activate()
txtWhole.SetFocus
End Sub
Private Sub Form_Load()
Call LoadMeFirst
Pass = False
SaveDone = False
End Sub
Private Sub tmrConverter_Timer()
If IsNumeric(txtWhole.Text) = False Then txtWhole.Text = ""
Dim Words As String
SourceVal = txtWhole.Text
Words = Convert & ConvertDec
txtConverted.Text = Words
End Sub
Private Sub txtWhole_Change()
tmrConverter.Enabled = True
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -