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.
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 ...
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.
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;
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Thank you very much, this works beutifully for the toolbars; is there any way to hide the legend panel as well?
Hi,
Code:MP.PaneState = GeoPaneState.geoPaneNone;
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
Does the toolbar code still work on 2009? I am having problems if I do the following:
This used to work in 2006.Code:object navigationBarObj = MapPointToolBars.Navigation; this.axMappointControl1.Toolbars.get_Item(ref navigationBarObj).Visible = true;
Any help would be appreciated.
Thanks,
Scarpachi
Hi,
Can you tell me what kind of problems you have with it?
rgds, Wilfried Mestdagh
www.mestdagh.biz
www.comfortsoftware.be
www.expertsoftware.be
MapPoint coding demo
MapPoint 2011 available, buy now
There are currently 1 users browsing this thread. (0 members and 1 guests)