-
Making a Screen Ruler
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?
-
I'm sure you've tried it but i'll mention it anyways....have you tried the MouseMove or MouseDown events of the form? Not sure how you would implement it but could be a start in the right direction.
-
Yes I have. MouseMove, MouseDown and MouseUp. With and without timers