3

I have created form with axMapControl and comboBox with values of possible scales (e.g. 1:1 000 000, 1: 500 000, etc).

How can I change current map scale programmaticaly by using value from selectedItem taken from Combobox?

3

You can set IMap.MapScale to set the current map scale.

2

Try this:

IMap _map = ArcMap.Document.FocusMap;
_map.MapScale = Your_Value;

For more information see this : IMap interface and IMap.MapScale Property

0

I had a problem in obtaining map scales and I solved it in this answer to How to get a list of map scales programmatically in ArcMap?.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.