Event spamming :)

  • Thread starter Thread starter Rasmus Kromann-Larsen
  • Start date Start date
R

Rasmus Kromann-Larsen

Hey, I'm using several forms navigating back and forward between them
using two buttons. However, it is possible to 'spam' the button and make
it call the EventHandler several times before the forms actually shift.
I've tried disabling the button as the first line of the EventHandler,
but you can still 'spam' it. What is the magic solution? :) Also, I had
a problem with the Enabled-trick, since the forms are often closed and
disposed when I navigate between them - and I'll get an
ObjectDisposedException when trying to re-enable the button, even if I
have a null check on the button.

Thanks,
- Rasmus.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top