for the loop i hav used the following code:

Code:
Dim intHeight As Integer
        Dim intEndHeight As Integer
        intHeight = DataGridView1.Height
        Do Until intEndHeight = 220
            intHeight = intHeight - 5
            DataGridView1.Height = intHeight
            intEndHeight = intHeight
        Loop
however it doesnt seem to stop at 220 it just keep going
what have i done wrong?