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
1871
User control events are not firing when the user control is floating.
posted

I have a tab that contains two User Controls. In my scenario User Control 2 has an ultraGrid and when one of the rows is doubled clicked a published method is invoked that loads User Control 1. When both User Controls are docked this scenario works great because the Leave and Enter events on User Control 1 fire.

When User Control 2 is floating and a row is double clicked it never fires any events in User Control 1. In fact leaving User Control 1 to click on User Control 2 does not even fire the Leave event.

From my debugging it appears that User Control 1 which is still docked does not think focus has been lost and therefore no reason for the events to fire. I know User Control 1 focus is set because I am sitting in the first available field but still no events on the User Control fire.The only way to get an event to fire is to click on User Control 1's tab.

Any ideas on how to work around this issue? Thanks in advance.

  • 22852
    Offline posted

    Hello,

    What functionality do you need on User Control 2 that you need the leave events for.  What is this being used for and how does it relate to User Control 1?

    Alan