Turning on all pushpin Balloon sTate
I'm trying to turn on all the pushpins balloon's that I have on my map which is about 15 or so pushpins. The code that I'm using works but only turns on two of them and not the rest. Does anybody now why this is happening? Here is the code the I'm executing;
Private Sub btnBalloonsONOFF_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnBalloonsONOFF.Click
Dim oPushPin As MapPoint.Pushpin
If bISBallOn = False Then
btnBalloonsONOFF.Text = "Information On"
bISBallOn = True
For Each ds In oMap.DataSets
oRecSet = ds.QueryAllRecords
oRecSet.Pushpin.BalloonState = MapPoint.GeoBalloonState.geoDisplayBalloon
Next
Else
btnBalloonsONOFF.Text = "Information Off"
bISBallOn = False
For Each ds In oMap.DataSets
oRecSet = ds.QueryAllRecords
oRecSet.Pushpin.BalloonState = MapPoint.GeoBalloonState.geoDisplayNone
Next
End If
End Sub