I am encountering a strange problem...
I have a listbox on a form and I'm trying to get the ListIndex value when the user right-clicks on the form. I'm trying to do this by using the MouseUp event...however this is not returning the right values all the time for some reason...The OnClick event works perfectly, however the MouseUp doesn't return the right values all the time..
I am attaching a sample DB with just one table and form and when one clicks on the form, the (ListIndex + 1) value of the OnClick and MouseUp events is given...as you will notice, they won't always return the same figure...
any ideas abt this would be greatly appreciated!
I have a listbox on a form and I'm trying to get the ListIndex value when the user right-clicks on the form. I'm trying to do this by using the MouseUp event...however this is not returning the right values all the time for some reason...The OnClick event works perfectly, however the MouseUp doesn't return the right values all the time..
I am attaching a sample DB with just one table and form and when one clicks on the form, the (ListIndex + 1) value of the OnClick and MouseUp events is given...as you will notice, they won't always return the same figure...
any ideas abt this would be greatly appreciated!