Friends,
I am trying to come up with a custom position control (trackbar you can say ). I have a background horizontal bar (picturebox) over which I have the slider(another picturebox). Essentially, the slider should move based on where the user clicks on the background bar. For that, I need to somehow find the coordinates where the user clicked on the back image. I tried the cursor object. However, it gives co-ordinates relative to the container control's dimensions. I would want it to be relative to the user control's dimensions, coz based on those (static) values, I need to move the slider.
Any ideas how this can be done?
Do let me know.
DNM
I am trying to come up with a custom position control (trackbar you can say ). I have a background horizontal bar (picturebox) over which I have the slider(another picturebox). Essentially, the slider should move based on where the user clicks on the background bar. For that, I need to somehow find the coordinates where the user clicked on the back image. I tried the cursor object. However, it gives co-ordinates relative to the container control's dimensions. I would want it to be relative to the user control's dimensions, coz based on those (static) values, I need to move the slider.
Any ideas how this can be done?
Do let me know.
DNM