PC Review


Reply
Thread Tools Rate Thread

Cancel listbox click

 
 
JP
Guest
Posts: n/a
 
      6th Oct 2003
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


 
Reply With Quote
 
 
 
 
Cor
Guest
Posts: n/a
 
      7th Oct 2003
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


 
Reply With Quote
 
Fergus Cooney
Guest
Posts: n/a
 
      7th Oct 2003
Hi JP,

Yes. Make a note of the current index in MouseDown.

Regards,
Fergus


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cancel listbox selection vba-dev Microsoft Access VBA Modules 2 26th Oct 2009 10:39 PM
Cancel a listbox selection vba-dev Microsoft Access Form Coding 0 26th Oct 2009 05:16 PM
cancel form open if listbox is empty deb Microsoft Access Forms 3 3rd Jul 2008 07:09 PM
stumped...table row click event and then cancel the checkbox click =?Utf-8?B?ZGF2ZQ==?= Microsoft Dot NET 1 2nd Sep 2006 03:53 AM
Is refreshing listbox rowsource in listbox click event possible? Jeremy Gollehon Microsoft Excel Programming 4 25th Sep 2003 06:45 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:43 AM.