home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 April
/
PCWorld_1999-04_cd.bin
/
Software
/
Vyzkuste
/
BegVisB
/
BeginVBSW
/
BVBProjects
/
VB5Projects
/
Savings.Frm
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1999-01-26
|
5KB
|
153 lines
VERSION 5.00
Begin VB.Form frmSavings
BorderStyle = 1 'Fixed Single
Caption = "Savings Account"
ClientHeight = 3075
ClientLeft = 3735
ClientTop = 1635
ClientWidth = 3135
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
PaletteMode = 1 'UseZOrder
ScaleHeight = 3075
ScaleWidth = 3135
Begin VB.CommandButton cmdExit
Caption = "Exit"
Height = 495
Left = 1680
TabIndex = 7
Top = 2400
Width = 1215
End
Begin VB.CommandButton cmdCompute
Caption = "Compute"
Height = 495
Left = 240
TabIndex = 6
Top = 2400
Width = 1215
End
Begin VB.TextBox txtMonths
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 5
Top = 960
Width = 1215
End
Begin VB.TextBox txtDeposit
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 4
Top = 240
Width = 1215
End
Begin VB.Label lblTotal
BackColor = &H00FFFFFF&
BorderStyle = 1 'Fixed Single
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1680
TabIndex = 3
Top = 1680
Width = 1215
End
Begin VB.Label lblTotalHeading
Caption = "Total Savings"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 2
Top = 1680
Width = 1215
End
Begin VB.Label lblMonthsHeading
Caption = "Number of Months"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 1
Top = 960
Width = 1215
End
Begin VB.Label lblDepositHeading
Caption = "Monthly Deposit"
BeginProperty Font
Name = "Arial"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 0
Top = 240
Width = 1215
End
Attribute VB_Name = "frmSavings"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Deposit As Integer
Dim Months As Integer
Dim Total As Integer
Private Sub cmdCompute_Click()
'Get deposit amount
Deposit = Val(txtDeposit.Text)
'Get number of months
Months = Val(txtMonths.Text)
'Compute total savings
Total = Deposit * Months
'Display Total
lblTotal.Caption = "$" + Str(Total)
End Sub
Private Sub cmdExit_Click()
End Sub