insert picturebox into picturebox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • randichan
    New Member
    • Apr 2009
    • 1

    insert picturebox into picturebox

    I have a code from some article. (picture inner inside the picture outer)
    The result of the code is when i was klik the place in the picture outer, the picture inner will show in the place i was klik, but in diagonal place.

    It wasnt in the right place i was klik. I want the picture inner will show
    in the spot i was klik

    picturebox1 name = PictOuter
    picturebox2 name = PictInner

    Dim pos As String
    Dim bos As String

    pos = Format(x / PictOuter.Width * 100, "0")
    bos = Format(y / PictOuter.Heigh t * 100, "0")

    PictInner.Left = PictOuter.Width * pos / 100
    PictInner.Top = PictOuter.Heigh t * bos / 100
    PictInner.Visib le = True

    Your information will so helpfull, thanks for your attention
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    From your post/code i don't understand what is your requirement and your English makes it even difficult for me.

    Comment

    • smartchap
      New Member
      • Dec 2007
      • 236

      #3
      I have checked it is visible at the place where pictouter is clicked. Excatly what is required by you please make clear.

      Comment

      Working...