Results 1 to 8 of 8

Thread: [RESOLVED] This one's got me beat !!!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Resolved [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)???

  2. #2
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    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.

  3. #3
    Frenzied Member
    Join Date
    Jun 2007
    Location
    India
    Posts
    1,158

    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

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    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?

  5. #5
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    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
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    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??

  7. #7
    PowerPoster
    Join Date
    Mar 2002
    Location
    UK
    Posts
    4,780

    Re: This one's got me beat !!!

    Click the line control and then drag it into the picturebox. Does my first suggestion not work?

  8. #8

    Thread Starter
    Addicted Member
    Join Date
    Aug 2006
    Posts
    234

    Smile 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
  •  



Click Here to Expand Forum to Full Width