MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Turning on all pushpin Balloon sTate

This is a discussion on Turning on all pushpin Balloon sTate within the Products: Pushpin Tool, Single State Mapper forums, part of the Map Forums category; I'm trying to turn on all the pushpins balloon's that I have on my map which is about 15 or ...


Go Back   MapPoint Forums > Map Forums > Products: Pushpin Tool, Single State Mapper

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-17-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-18-2004
Bug's Avatar
Bug Bug is offline
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 6
Here's how I do it.

Public Sub MinimumDetails(ByVal Requester As frmMap)

Dim oMap As MapPoint.Map = Requester.MappointControl1.ActiveMap
Dim oDataSets As MapPoint.DataSets
Dim oDataset As MapPoint.DataSet
Dim oRS As MapPoint.Recordset

oDataSets = oMap.DataSets

For Each oDataset In oDataSets
oRS = oDataset.QueryAllRecords
oRS.MoveFirst()
Try
While Not oRS.EOF
oRS.Pushpin.BalloonState = MapPoint.GeoBalloonState.geoDisplayName
oRS.MoveNext()
End While
Catch ex As Exception
MsgBox(ex.Message)
End Try
Next
End Sub
End If
__________________
Best Regards.
Bug
Microsoft Certified Solutions Developer
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
howto get balloon to show on mouseover pushpin discostu MapPoint 2006/2009 Discussion 1 05-25-2005 02:14 PM
Displaying Balloon on Pushpin Anonymous MapPoint 2006/2009 Discussion 11 01-31-2005 02:53 PM
Turning postcodes into a regional breakdown Nicky MapPoint 2006/2009 Discussion 0 11-26-2004 06:12 PM
Turning off the text directions in the OLE object CraigA MapPoint 2006/2009 Discussion 3 06-01-2003 01:06 PM
turning imported data on & off in the view nygel_humphrey MapPoint 2006/2009 Discussion 1 07-25-2002 12:51 PM


All times are GMT -5. The time now is 10:39 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map

Cheap flights to Rhodes
For cheap flights to Rhodes make Holiday Hypermarket your final destination. Holiday Hypermarket help you to have a fantastic affordable holiday.

Online Travel Agent
Travel Counsellors is a Queen's Award winning online Travel Agent. Book your travel online with one of our agents.

Holidays in Italy
Holidays in Italy boast some stunning countryside as well as a beautiful coastline. You can even visit an active volcano like Stromboli or Etna. Book at dealchecker.co.uk.

St Lucia Holidays
St Lucia holidays offer something for everyone. Enjoyed by families and young couples alike, St Lucia is a great destination. See online!

Holiday
Searching for the perfect holiday? Well check out ULookUBook online to find out all about your destination and also to book a great value holiday.

Cheap family holidays
To plan cheap family holidays, use Travel.co.uk to explore all the delightful possibilities that there are.

Cheap holidays in Cyprus
Stunning coastline! Beautiful beaches! Cheap holidays in Cyprus, available at On The Beach.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51