|
-
Feb 4th, 2011, 11:34 AM
#1
Thread Starter
Addicted Member
[RESOLVED] This one's got me beat !!!
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)???
-
Feb 4th, 2011, 11:40 AM
#2
Re: This one's got me beat !!!
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.
-
Feb 4th, 2011, 11:45 AM
#3
Frenzied Member
Re: This one's got me beat !!!
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
-
Feb 4th, 2011, 12:31 PM
#4
Thread Starter
Addicted Member
Re: This one's got me beat !!!
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?
-
Feb 4th, 2011, 01:06 PM
#5
Re: This one's got me beat !!!
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
-
Feb 4th, 2011, 01:28 PM
#6
Thread Starter
Addicted Member
Re: This one's got me beat !!!
Add the line control to the controls property of the picture box, sorry how do I do that??
-
Feb 4th, 2011, 01:36 PM
#7
Re: This one's got me beat !!!
Click the line control and then drag it into the picturebox. Does my first suggestion not work?
-
Feb 4th, 2011, 02:13 PM
#8
Thread Starter
Addicted Member
Re: This one's got me beat !!!
Thank you very much your last works perfectly, most gratefull
Thank you
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|