Thank you very much! I have a small problem now, if the user holds down the up arrow key after the character has doublejumped then the character will no longer doublejump, but just do one jump instead.

Here is my jump code in the form_Keydown event:

vb Code:
  1. If doubleJump = False Then
  2.             If e.KeyCode = Keys.Up Then
  3.                 'Resets the animation if the character was moving
  4.                 If tmrJump.Enabled = True Then
  5.                     tmrJump.Enabled = False
  6.                     doubleJump = True
  7.                     characterCount = 0
  8.                 End If
  9.  
  10.                 ' Disables movement animation
  11.                 tmrMove.Enabled = False
  12.                 'Resets character movement
  13.                 characterCount = 0
  14.  
  15.                 ' Sets the animation image to the right direction
  16.                 If movement = "Right" Then
  17.                     movement = "RightJump"
  18.                 ElseIf movement = "Left" Then
  19.                     movement = "LeftJump"
  20.                 End If
  21.                 keyPressed(e.KeyCode) = True
  22.                 tmrJump.Enabled = True
  23.             End If

vb Code:
  1. Private Sub tmrJump_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrJump.Tick
  2.         ' Next animated frame
  3.         characterCount += 1
  4.         ' Causes the character to jump
  5.         CharacterJump()
  6.         If keyPressed(Keys.Right) Or keyPressed(Keys.Left) Then
  7.             CharacterMove()
  8.         End If
  9.     End Sub

vb Code:
  1. Private Sub CharacterJump()
  2.         Dim newLocation As Integer = locationY
  3.  
  4.         Select Case characterCount
  5.             Case 1
  6.                 newLocation -= 8
  7.             Case 2
  8.                 newLocation -= 6
  9.             Case 3
  10.                 newLocation -= 4
  11.             Case 4
  12.                 System.Threading.Thread.Sleep(50)
  13.             Case 5
  14.                 If doubleJump = True Then
  15.                     newLocation += 8
  16.                 Else
  17.                     newLocation += 4
  18.                 End If
  19.             Case 6
  20.                 If doubleJump = True Then
  21.                     newLocation += 12
  22.                 Else
  23.                     newLocation += 6
  24.                 End If
  25.             Case 7
  26.                 If doubleJump = True Then
  27.                     newLocation += 16
  28.                 Else
  29.                     newLocation += 8
  30.                 End If
  31.             Case 8
  32.                 'Disables the animation
  33.                 tmrJump.Enabled = False
  34.                 'Resets the character to standing image
  35.                 characterCount = 0
  36.                 If doubleJump = True Then
  37.                     doubleJump = False
  38.                 End If
  39.  
  40.                 keyPressed(Keys.Up) = False
  41.                 If movement = "RightJump" Then
  42.                     movement = "Right"
  43.                 ElseIf movement = "LeftJump" Then
  44.                     movement = "Left"
  45.                 End If
  46.  
  47.                 ' Continues previous movement on ground
  48.                 If keyPressed(Keys.Right) Or keyPressed(Keys.Left) Then
  49.                     tmrMove.Enabled = True
  50.                 End If
  51.         End Select
  52.  
  53.         If CheckForGround(newLocation) = True Then
  54.             newLocation = 342
  55.         End If
  56.  
  57.         locationY = newLocation
  58.  
  59.         ' Animates the character's jump
  60.         Me.Refresh()

vb Code:
  1. Private Sub tmrMove_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles tmrMove.Tick
  2.         If movement = "Right" Or movement = "Left" Then
  3.             If characterCount = 10 Then
  4.                 ' Loops the animation
  5.                 characterCount = 1
  6.             Else
  7.                 ' Gets the next animation image
  8.                 characterCount += 1
  9.             End If
  10.         End If
  11.  
  12.         CharacterMove()
  13.     End Sub