for the loop i hav used the following code:
however it doesnt seem to stop at 220 it just keep goingCode:Dim intHeight As Integer Dim intEndHeight As Integer intHeight = DataGridView1.Height Do Until intEndHeight = 220 intHeight = intHeight - 5 DataGridView1.Height = intHeight intEndHeight = intHeight Loop
what have i done wrong?




Reply With Quote