Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have an app with two menu bars. One being the AxToolbarControl in a UserControl and one in a separate menu bar containing in-house stuff.

I currently have the issue where if I select something in the AxToolBarControl and then select something in the other menu-bar the item in the AxControl is still checked. This obviously results in two commands being executed on the mousedown event handler.

I've looked at the IControl and IToolbar but it looks like .Checked is a ReadOnly.

Any ideas?

share|improve this question
I can always set the buddy control to null and back to mapControl but that's not clean – PSU_Kardi Mar 29 '11 at 17:36
Can you set .CurrentTool to null? – patrick Mar 29 '11 at 19:56
up vote 1 down vote accepted

Set the buddy control to null and back to mapControl. Not elegant but it works.

share|improve this answer
That's my philosophy. – patrick Apr 8 '11 at 19:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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