Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
UltraExplorerBarItem
posted

Hello,

I'm programming a MDI application. My MDI parent Form has a UltraExplorerBar control docked in the right docking area. Each child form opened in MDI parent adds its own groups and items to the UltraExplorerBar. In MDI parent from I've exposed as public ItemClick event so the child forms can listen to it and do some busines logic when the item is clicked. Each time a child form is opened, in Form_Load event they subscribe to ItemClick event exposed in the MDI parent Form.

The problem is when one Form is opened twice in the MDI Parent form. Each insatance of Form subscribe only one time to ItemClick event but when I look into InvocationList of ItemClick delegate I can't make a difference bettween two opened Forms. So when I click on the Item in UltraExplorerBar, my busines logic is run twice in an active Form !

I'll be greatfull if you advice me on how to solve this problem.

Thanks in advance.