G
Guest
Platform: Win CE 4.2 : touchscreen device
I am creating a kiosk app that allows user to navigate through a wizard to
perform one or more transactions. All of the navigation through the different
forms is done via click events on a System.Windows.Forms.Button derived
class. Everything seems to work fine when the user touches the buttons on the
touchscreen correctly (tapping the button only once). The problem I am
running into is that when the user touches the button multiple times or
presses down on the button too long multiple click events seem to get fired.
When this happens it seems that the following scenario is happening:
Let's say we have three forms that are to be displayed successively in the
wizard - form1, form2, form3. Each of these forms contains buttons and event
handlers to act on the button click event. If the user is on form1 and
presses the button to navigate to form2 incorrectly(touches it twice or holds
it down too long), it appears that form1's button click handler is called
which calls code to dispose of form1 and load form2. But before form2 is
finished getting loaded form2's button click event handler is fired which
calls code to dispose form2 and load form3.
My question is: Is there a way in code to prevent this sort of behavior from
occurring?
mark
I am creating a kiosk app that allows user to navigate through a wizard to
perform one or more transactions. All of the navigation through the different
forms is done via click events on a System.Windows.Forms.Button derived
class. Everything seems to work fine when the user touches the buttons on the
touchscreen correctly (tapping the button only once). The problem I am
running into is that when the user touches the button multiple times or
presses down on the button too long multiple click events seem to get fired.
When this happens it seems that the following scenario is happening:
Let's say we have three forms that are to be displayed successively in the
wizard - form1, form2, form3. Each of these forms contains buttons and event
handlers to act on the button click event. If the user is on form1 and
presses the button to navigate to form2 incorrectly(touches it twice or holds
it down too long), it appears that form1's button click handler is called
which calls code to dispose of form1 and load form2. But before form2 is
finished getting loaded form2's button click event handler is fired which
calls code to dispose form2 and load form3.
My question is: Is there a way in code to prevent this sort of behavior from
occurring?
mark