Alrite so Im doing this assignmen for class, and I think im headed in the right direction, but I know im missing something important and the program isnt working so...I was hoping you could send me in the right direction...

So heres the program form..


The whole idea is to enter numbers into the enterbox, and when the "largest" button is clicked, the largest of all the numbers that you entered would be displayed in the picturebox corresponding with the largest button. We must do this using If statements...heres what ive got so far..no laughing, i'm new to this.


Dim largest As Integer
Dim holder As Integer
__________________________________
Private Sub EnterButton_Click()

If EnterBox > holder Then
EnterBox = largest
Else: EnterBox = holder

End If

End Sub
__________________________________
Private Sub LargestButton_Click()
LargestBox.Print largest
End Sub


Any light you can shed on the subject would be greatly appreciated! thanks