Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

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 ...

  1. #1
    spideybud is offline 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?

  2. #2
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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.

  3. #3
    Joakim is offline 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.

  4. #4
    spideybud is offline Junior Member Yellow Belt
    Join Date
    Jul 2003
    Posts
    13

    Works Great!!!! Thanks

    Joakim,

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


  5. #5
    Anonymous is offline Senior Member Black Belt
    Join Date
    Jul 2002
    Posts
    5,137

    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Win2000 Server+Infragistics Toolbar+Mappoint = problem?
    By EdB in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 02-22-2005, 12:54 PM
  2. customized drawing toolbar with circle and free hand only?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-19-2005, 04:37 PM
  3. Drawing an Oval Using The Toolbar - QueryCircle?
    By Steve Wenck in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 08-16-2004, 01:49 PM
  4. drawing lines on top of MapPoint control
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 07-29-2004, 03:23 PM
  5. Enabling only the zoom function of the Navigation Toolbar
    By cathsaigh in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 07-31-2002, 03:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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