Can anyone give me the code for programming a Mortgage Calculator in VB2008

By Shadadancer ·
I have tried everything but it doesn't work. I don't have any errors, comments, or warnings but it won't run. I need to build it with a loan of $300,000 and 4.5% interest. It is to diplay results in a ListBox and it is to show Monthly Payment. Using a Do While...Loop showing results of 6 different years. The years will be in increments of 5 such as 5, 10, 15, 20, 25, and 30. So it will be something like this

Do While Increment<=6
Dim increment As Integer = 1
Dim calculatedvalue As Integer
Dim counter As Integer = 5
calculatedvalue = increment * 5
years += 1

Can someone possibly give me the right code so I can compare mine and see where I am going wrong. I know I have to declare using Dim. I have all of it but it will not debug. I would appreciate it if someone would give me the complete code so I can compare mine and see why it won't debug to run. Thanks in advance.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Free -

by oldbaritone In reply to Can anyone give me the co ...

and many others.

Here's a calculator source package

and here's a mortgage calculator source package

I don't know if they're any good, but at least they're free. They're probably worth what they cost...


Related Discussions

Related Forums