Control bars

dynek
01-11-2005, 04:03 AM
Hi again :)

My Access application integrates the mappoint control. My bosses are asking me to add the control bars so they can create zones and stuff (the drawing tools I guess).

Is there any way to do it without loading the application in an external window?

Thanks for your help!

Jaba
01-11-2005, 04:28 AM
You normally could do it thanks to the following lines of C# code :

object temp = "Drawing";
MapPoint.Toolbar toolbar = this.axMappointControl1.Toolbars.get_Item(ref temp);
toolbar.Visible = true;

dynek
01-11-2005, 08:50 AM
im coding it in VBA and I have no .toolbar method for mappointcontrol.

Any idea?

Thanks

Jaba
01-11-2005, 09:28 AM
I think someone here who programs in VBA could help you... But are you sure you don't have access programmatically to the toolbar ?


Sorry

Wilfried
01-11-2005, 12:35 PM
Hi,

im coding it in VBA and I have no .toolbar method for mappointcontrol

In programming, specially if moving between languaes you have to use some imagination to filter the little differences out :)

Map.Application.Toolbars.Item("Navigation").Visible = True
Map.Application.Toolbars.Item("Drawing").Visible = True
Map.Application.Toolbars.Item("Standard").Visible = True
Map.Application.Toolbars.Item("Location and Scale").Visible = True

dynek
01-12-2005, 01:26 AM
Yeah it worked!

Thanks a lot dude !

 
Web mp2kmag.com
mapforums.com