Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.