claire_bicknell
Well-known member
- Joined
- Dec 10, 2008
- Messages
- 49
- Programming Experience
- Beginner
I have created a hotspot on a picture that when clicked reveals a second picture.
For example: Debenhams has a picture 1 that when clicked shows picture 2.
The problem I have is when i have a second shop for example John Lewis, i click picture number 1 and it shows me Debenhams picture2 instead of its own picture 2.
Why could this be?
This is the fragment of code:
Any help much appreciated
For example: Debenhams has a picture 1 that when clicked shows picture 2.
The problem I have is when i have a second shop for example John Lewis, i click picture number 1 and it shows me Debenhams picture2 instead of its own picture 2.
Why could this be?
This is the fragment of code:
HTML:
Private Sub PictureBox1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles PictureBox1.MouseDown
Dim strLoad_File As String
Dim intRow As Integer
For Each place As String In places.Keys
If places(place).Contains(e.Location) Then
strLoad_File = myDataTable.Rows(intRow).Item("Picture2")
PictureBox1.Load(IO.Path.Combine(Application.StartupPath, strLoad_File))
Exit For
End If
Next
End Sub
Any help much appreciated