If this key is a software button, you can disable the button:
private void btnOK_Clicked(object sender, EventArgs e) {
btnOK.Enabled = false;
try {
// Your code here
} finally {
btnOK.Enabled = true;
}
}
If this is for a physical key on your device, I don't really know how to go in and set the "click rate" (or whatever it is called), but you could try adding a lock
around your routine.
private object m_lock = new object();
private void textbox_Changed(object sender, EventArgs e) {
lock (m_lock) {
// Your code here
}
}
I don't know if that would help or not, though. I can't test, because my devices here do not seem to have that same issue.