Search code examples
windows-mobilewindows-ce

Windows CE click bug


In my application I have a few situations where there is a short momentary delay switching between forms, and although I briefly display a wait cursor, any taps the user makes during this transition register on the yet to be displayed form. Has anyone else noticed this problem, and if so how have you gone about fixing it?


Solution

  • This is a similar issue as in avoid click event while panel is refreshing and Invoke a service after windows forms loading

    You have to ignore messages a while in the new form. There is no "Form is really visibe" in compact framework.

    You can disable all controls in a form and have a timer that enables the controls after some delay, which more or less ensures that the form will not receive input as long it is not fully visible.

    Sorry, but there is no better solution then using some delay as there is no event that can be used to verify the form has been fully loaded and is visible to the user.