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 6 of 6

How can I hide toolbars and legend panels?

This is a discussion on How can I hide toolbars and legend panels? within the MapPoint Desktop Discussion forums, part of the Map Forums category; Can anyone tell me how to hide the toolbars and legend panel when the MP application is visible? C# sample ...

  1. #1
    tacaldo is offline Junior Member Yellow Belt
    Join Date
    Mar 2005
    Posts
    17

    How can I hide toolbars and legend panels?

    Can anyone tell me how to hide the toolbars and legend panel when the MP application is visible? C# sample would be most helpful if possible. Thanks.

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433
    Hi,

    Code:
                object o = "Drawing";
                MapPoint.Toolbar toolbar = MP.Toolbars.get_Item(ref o);
                toolbar.Visible = false;
    
                o = "Standard";
                toolbar = MP.Toolbars.get_Item(ref o);
                toolbar.Visible = false;
    
                o = "Navigation";
                toolbar = MP.Toolbars.get_Item(ref o);
                toolbar.Visible = false;
    
                o = "Location and Scale";
                toolbar = MP.Toolbars.get_Item(ref o);
                toolbar.Visible = false;

  3. #3
    tacaldo is offline Junior Member Yellow Belt
    Join Date
    Mar 2005
    Posts
    17

    legend panel

    Thank you very much, this works beutifully for the toolbars; is there any way to hide the legend panel as well?

  4. #4
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

  5. #5
    scarpachi is offline Junior Member White Belt
    Join Date
    Sep 2008
    Posts
    1

    Re: How can I hide toolbars and legend panels?

    Does the toolbar code still work on 2009? I am having problems if I do the following:

    Code:
     
    object navigationBarObj = MapPointToolBars.Navigation;
    this.axMappointControl1.Toolbars.get_Item(ref navigationBarObj).Visible = true;
    This used to work in 2006.

    Any help would be appreciated.

    Thanks,
    Scarpachi

  6. #6
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: How can I hide toolbars and legend panels?

    Hi,

    Can you tell me what kind of problems you have with it?

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Managing Toolbars (In .Net)
    By EdB in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-06-2009, 07:34 AM
  2. Toolbars and C#
    By ddpg in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-29-2004, 08:29 AM
  3. hide Legend and overview Pane
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 03-11-2004, 10:10 AM
  4. toolbars
    By Fisherman´s Friend in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 09-22-2003, 08:13 AM
  5. Toolbars
    By Bart Vervenne in forum Wish List
    Replies: 0
    Last Post: 04-11-2003, 02:38 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 26 27