Guys
I am attempting to get all the labels in a panel in order to find a specifc one and then set the position of an image (ivResult) relative to that label - I am using the following:
For Each lbl As Label In pnl
Dim labelTag As String
labelTag = lbl.Tag
If labelTag = "MyText" Then
ivResult.Left = lbl.Left + 5dip
ivResult.Top = lbl.Top + 50dip
End If
Next
However, it is not working. The debugger just stops at the first line and exists - I suspect there is an error.
Any ideas?
Thank-you.
I am attempting to get all the labels in a panel in order to find a specifc one and then set the position of an image (ivResult) relative to that label - I am using the following:
For Each lbl As Label In pnl
Dim labelTag As String
labelTag = lbl.Tag
If labelTag = "MyText" Then
ivResult.Left = lbl.Left + 5dip
ivResult.Top = lbl.Top + 50dip
End If
Next
However, it is not working. The debugger just stops at the first line and exists - I suspect there is an error.
Any ideas?
Thank-you.