I have two picture boxes that are parrellel to each other on my form.
When the mouse moves over picturebox1, i draw a line parrallel at the mouse position, and I also want to move a label parallel to the mouse position in picturebox 2.
but using the Y coord from picturebox1 to set the .top property of the label doesnt work. its offset by a little bit.
how can i make it exactly parrallel?
This is the code in picturebox1s mousemove event
picChart is the first picture box, and picPrice is the second.Code:picPrice.ScaleHeight = picChart.ScaleHeight lblPrice.Top = Y
and it makes the label offset a little bit to the mouse position
thanks




Reply With Quote