5 Replies - 2484 Views - Last Post: 16 June 2009 - 11:10 PM Rate Topic: -----

#1 ITbegginner   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-June 09

VB help please for codeing a money loan program

Posted 16 June 2009 - 01:57 PM

Hello I am currently trying to make a program for a money loan company just for fun the code I have written has no errors but is not working properly please help.

The program should be very easy. All it has is two texts boxes, a calculate button and a clear button. Here are the facts im trying to code.

20$ finance charge for every $100 loaned. The limit is 500 and the leats amount is 100. Please help! Here is the code that I have made below.


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

'Calculates the laon amount along with the finace charge corresponding to the loan amout based on a 14 day term'
Me.TextBox3.Focus()
Me.TextBox3.Text = Me.TextBox1.Text
Me.TextBox1.Text = Format(Me.TextBox3.Text, "currency")
Dim num0rdered As Decimal
Dim textbox3 As Decimal

'assign the approriate finace charges per 100'

Integer.TryParse(Me.TextBox3.Text, num0rdered)
Select Case num0rdered
Case 1 To 100
textbox3 = 20.0
Case 101 To 200
textbox3 = 20.0
Case 201 To 300
textbox3 = 20.0
Case 301 To 400
textbox3 = 20.0
Case 401 To 500
textbox3 = 20.0


End Select



End Sub

Private Sub ProgressBar1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)


End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles xclearButton.Click
Me.TextBox1.Text = ""
Me.TextBox3.Text = ""
End Sub
End Class

This post has been edited by ITbegginner: 16 June 2009 - 02:48 PM


Is This A Good Question/Topic? 0
  • +

Replies To: VB help please for codeing a money loan program

#2 Cookiesliyr   User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 136
  • Joined: 16-May 09

Re: VB help please for codeing a money loan program

Posted 16 June 2009 - 03:00 PM

that's .... weird ....

first for her sis then for fun ...... what's next .....
Was This Post Helpful? 0
  • +
  • -

#3 ITbegginner   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-June 09

Re: VB help please for codeing a money loan program

Posted 16 June 2009 - 03:13 PM

View PostCookiesliyr, on 16 Jun, 2009 - 02:00 PM, said:

that's .... weird ....

first for her sis then for fun ...... what's next .....



Ok I dont understand can you help me please?
Was This Post Helpful? 0
  • +
  • -

#4 Cookiesliyr   User is offline

  • D.I.C Head

Reputation: 12
  • View blog
  • Posts: 136
  • Joined: 16-May 09

Re: VB help please for codeing a money loan program

Posted 16 June 2009 - 04:02 PM

will sorry for that before but i wasn't in mood after seeing a smiler problem in VB.net and by the way, first of all ur code is in VB.net , and second please put ur code in Code box by clicking on CODE like this
 your code 


so we can read it easily .... finally .... ummm what's the error u get from ur code ?
Was This Post Helpful? 0
  • +
  • -

#5 vb5prgrmr   User is offline

  • D.I.C Lover

Reputation: 109
  • View blog
  • Posts: 1,016
  • Joined: 21-March 09

Re: VB help please for codeing a money loan program

Posted 16 June 2009 - 08:23 PM

And then move this to the .NET forum...
Was This Post Helpful? 0
  • +
  • -

#6 firebolt   User is offline

  • D.I.C Lover
  • member icon

Reputation: 93
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: VB help please for codeing a money loan program

Posted 16 June 2009 - 11:10 PM

Ask in the Report a Post forum. :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1