Hey everyone,

I'm having a problem with an updown thingy. When you click the up and down arrows it adds or subtracts from your total money to spend, but if you manually imput a number into the box it doesn't change the money. :-/

Here's part of my code where "rs" is the total you have to spend:

VB Code:
  1. Private Sub resourcesValue()
  2.         If purchase Then
  3.             spent = scal + sinf + sgen + sart + skni + sport
  4.             lblResources.Text = "Available Resources: " & rs - spent
  5.             If (rs - spent < 0) Then
  6.                 lblResources.ForeColor = Color.Red
  7.                 btnPurchase.Enabled = False
  8.             Else
  9.                 lblResources.ForeColor = Color.Black
  10.                 btnPurchase.Enabled = True
  11.             End If
  12.         End If
  13.     End Sub
  14.     Private Sub udCalvary_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udCalvary.ValueChanged
  15.         scal = udCalvary.Value * 8
  16.         resourcesValue()
  17.     End Sub
  18.     Private Sub udKnight_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udKnight.ValueChanged
  19.         skni = udKnight.Value * 11
  20.         resourcesValue()
  21.     End Sub
  22.     Private Sub udInfantry_ValueChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles udInfantry.ValueChanged
  23.         sinf = udInfantry.Value * 5
  24.         resourcesValue()
  25.     End Sub

Is there any way I can make it read this value change too? Thanks,

Mike