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