Cancel listbox click

  • Thread starter Thread starter JP
  • Start date Start date
J

JP

Is there anyway to cancel a click (keep listbox from changing) from code.

If the current data is not saved, I want an opportunity to save the current
data before switching.

I tried putting code in the listBox1_SelectedIndexChanged but the index has
already changed.

thanks
 
Hi JP,
I think that I don't understand it well, but:
Is there anyway to cancel a click (keep listbox from changing) from code.

If the current data is not saved, I want an opportunity to save the current
data before switching.

Maybye you are looking for the "mousedown" event.

Cor
 
Back
Top