MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




Enabling the Drawing toolbar using VB and MapPoint Control

This is a discussion on Enabling the Drawing toolbar using VB and MapPoint Control within the MapPoint Desktop Discussion forums, part of the Map Forums category; I am new to Mappoint. I am writting a custom program in VB and I want to be able to ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 07-08-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 13
Enabling the Drawing toolbar using VB and MapPoint Control

I am new to Mappoint. I am writting a custom program in VB and I want to be able to display Mappoint on a form and have it interact with text box data I have on the form.

I have a Mappoint control on a form and I want to have many/most of the features that exist in Mappoint including the drawing tool available to the user. I have the form coming up but some of the features like the drawing tool are not showing up.

Is the problem using the form control vs creating an instance of the application?

Could someone point me in the right direction?
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 07-08-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Drawing Toolbar

To show the toolbars you might try something like:

oMap.Application.Toolbars.Item("Drawing").Visible = False

where oMap has been set to the map control object.
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 07-08-2003
Junior Member
White Belt
 
Join Date: Jun 2003
Posts: 11
Show toolbars (and other stuff)

ddodgen, you must mean "Visible =True"

Spideybud, there are a lot of ways to show more of MapPoint. One easy method is to use the "PaneState". With this property you can show the routeplanner, find nearby places, the legend or the territory manager. An example would be:

Me.MappointControl1.PaneState = geoPaneRoutePlanner

To show the toolbars, then you can do almost as ddodgen told you (ddodgen is is using the syntax for the MapPoint Application object, not the OCX). The choices you have here are "Standard", "Navigation", Drawing" and "Location and Scale". An example of this would be:

Me.MappointControl1.Toolbars.Item("Drawing").Visib le = True

Hope it helps!

/Joakim Tornhill
SpedSoft AB

http://www.spedsoft.se
__________________
SpedSoft AB has been working with MapPoint since version 2000 and have the longest experience in Sweden on MapPoint.
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 07-09-2003
Junior Member
Yellow Belt
 
Join Date: Jul 2003
Posts: 13
Works Great!!!! Thanks

Joakim,

It works great.......Thanks for the help....

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 11-19-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
C# to get the toolbar

Code:
object temp = "Drawing";
			MapPoint.Toolbar toolbar = this.axMappointControl.Toolbars.get_Item(ref temp);			toolbar.Visible = true;
This was pretty hard to track down.

kudos to Peter Provost http://www.peterprovost.org/archive/2003/08/30/759.aspx
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
control, drawing, enabling, mappoint, toolbar


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/enabling-drawing-toolbar-using-vb-mappoint-control-1670.html

Posted By For Type Date
toolbar + vb | VIRGILIO Ricerca | Web This thread Refback 12-31-2008 06:42 AM

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
Win2000 Server+Infragistics Toolbar+Mappoint = problem? EdB MapPoint Desktop Discussion 2 02-22-2005 11:54 AM
customized drawing toolbar with circle and free hand only? Anonymous MapPoint Desktop Discussion 1 01-19-2005 03:37 PM
Drawing an Oval Using The Toolbar - QueryCircle? Steve Wenck MapPoint Desktop Discussion 1 08-16-2004 12:49 PM
drawing lines on top of MapPoint control Anonymous MapPoint Desktop Discussion 0 07-29-2004 02:23 PM
Enabling only the zoom function of the Navigation Toolbar cathsaigh MapPoint Desktop Discussion 1 07-31-2002 02:23 PM


All times are GMT -5. The time now is 12:34 PM.


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



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 60 61 62 63 64 65 66 67