Results 1 to 4 of 4

Thread: Drawing ontop of controls

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Drawing ontop of controls

    I have a complex user control, with several controls, including picturebox, label, shapes etc. Now..i want a simple line that goes from one picturebox, then via an label and then to another picturebox. How can this be achived?

  2. #2
    Addicted Member
    Join Date
    Apr 2006
    Location
    USA
    Posts
    207

    Re: Drawing ontop of controls

    If I'm reading this correctly. You want to place a line over all the other controls ? It's a pain in the butt that all controls weren't created equally.

    Since you already know how to make user controls, what if you made a second user control. Make it the same size as the other control. Then, place a line control in it and set the usercontol's backStyle=0 ( transparent )

    Then, just add the line UserControl to your control, make it topmost and there you go. If the line needs to be move-able just set up properties for the control.

    If that isn't what you need, please post a little more info.
    Keith_VB6

    If you have any further questions, just ask.
    If this solves things, then please mark the thread resolved.
    [Thread Tools] --> [Mark Thread Resolved]

  3. #3
    Old Member moeur's Avatar
    Join Date
    Nov 2004
    Location
    Wait'n for Free Stuff
    Posts
    2,712

    Re: Drawing ontop of controls


  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2006
    Posts
    58

    Re: Drawing ontop of controls

    Keith_VB6 - great idea! Ill try it right away
    Moeur - great link!

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