Hi everyone I have a picture that I need to move a lineShape over using theHSscrollbar, I can get it to move using the scrollbar but it's behind the picure. How do I make the line move to the front (bring to front)???
Printable View
Hi everyone I have a picture that I need to move a lineShape over using theHSscrollbar, I can get it to move using the scrollbar but it's behind the picure. How do I make the line move to the front (bring to front)???
I have never used the lineshape, but if it acts like a normal control, then you can right-click it in the designer and choose bring-to-front. You can do it at runtime as well by Control.BringToFront, Control.SendToBack.
If Grimfort's advice won't help, then i will suggest you to Draw the Line(look for the Paint event) instead of using the Line Control
Thanks, for the help, but I have already tried the bring to front, and picture to the back. Unfortunatly that does not work.
I am not sure avout the paint sugestion, can you help me a bit more on that one?
Picture box? if so, the picture box is a form of container... I think to get what you want, you'll need to add the line control to the controls property of the picture box itself... that will effectively put the line ontop of it.
-tg
Add the line control to the controls property of the picture box, sorry how do I do that??
Click the line control and then drag it into the picturebox. Does my first suggestion not work?
Thank you very much your last works perfectly, most gratefull
Thank you