MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Creating an application with mappoint within vb

This is a discussion on Creating an application with mappoint within vb within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi all! Am quite new to mappoint and I am trying to programm an application with the active x. What ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-11-2002
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Creating an application with mappoint within vb

Hi all!

Am quite new to mappoint and I am trying to programm an application with the active x. What I can already do is to put up am map, zoomto a certain adress etc.

What I am looking now for is:

-How can I add the legend to my app/ control?
-How can I click on a certain pushpin, make an odbc connection and show some information from the odbc database ?
-This is a mappoint user forum, right? Is there a forum just for developers?


Thank you very much!


Peter
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 12-11-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
You are in the right forum.

To add the legend
Code:
MapPointControl1.PaneState = geoPaneLegend
To work with a Pushpin that you have selected.

Code:
Dim objmap As MapPointctl.Map
Dim objPushpin As MapPointCtl.Pushpin

Set objmap = MapPointControl1.ActiveMap
      'Make sure the item selected on the map is a pushpin
    If TypeOf objmap.Selection Is Pushpin Then
      Set objPushpin = MapPointControl1.Selection       
      'Do Something
    End If
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 12-16-2002
Member
Yellow Belt
 
Join Date: Dec 2002
Posts: 39
Select pushpin and connect to databse

Hi John,

thanks a lot for your answers!

When I paste the last code snipplet into the mouse_down event of the mappoint control it causes a mean crash. Do you have an idea?

What I want to do is:

Click on a pushpin in my map, when it's sapushpin I want to connect to an odbc database and sho some information in a dialog.


Peter
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 12-16-2002
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
I would put the code in the "SelectionChange event"

At the point in the code sample that says "Do Something" call a subroutine, passing it the pushpin object.

You can not run your code inside the event procedure or you will get the "Server Busy Error"
__________________
John
http://www.support-pc.com

Order MapPoint 2006 Here
https://secure.mp2kmag.com/?refer=support-PC
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

Tags
application, creating, mappoint


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
Creating a setup project in VB.net to distribute Mappoint Anonymous MapPoint 2006/2009 Discussion 3 10-04-2005 03:24 PM
tip: creating object model of mappoint and SQL command Wilfried MapPoint 2006/2009 Discussion 0 02-24-2005 01:00 PM
MapPoint Programming.... Creating a Route Anonymous MapPoint 2006/2009 Discussion 7 10-12-2004 01:34 AM
Creating COM add-ins for MapPoint using C# ratsey MapPoint 2006/2009 Discussion 3 11-12-2003 11:44 AM
Are there any plans for creating a mappoint active.... Anonymous MapPoint 2006/2009 Discussion 1 07-30-2001 07:01 AM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Thassos Holidays
Visit an unspoilt and beautiful Greek island with Thassos holidays available through UlookUbook.



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 52 53 54 55 56 57 58 59