I'm not sure if this is API but ...

I'm making a screen ruler for measuring graphics. I've put the code in the Form_Resize event as follows.

Private Sub Form_Resize()
Text1 = Form1.Width
Text2 = Form1.Height
End Sub

Although this does work it doesn't display the new measurements until I let go of the mouse button. I'm trying to have it constantly update the measurements as you resize the form. I've tried using a timer but that doesn't work either. Anyone know how to do this?