MouseDown eat my double click.

  • Thread starter Thread starter andylo
  • Start date Start date
A

andylo

Guest
Hi all,

I have listView A and B. I tend to do drag and drop items from A to B by using following events (MouseDown in A, DragEnter into B, DragDrop in B) They works all fine and lovely Arr... in fact, these 2 listView are file list view.

Then I want to add a property page for the items in the listView (For example, file size, created date...) in listView A, I add a context menu as well as a double click event in ListView A so a user can view the selected files property either by rightclick the context menu or double click the file name.

The the property menu/doubleclcik doesnt work 99% of the time, finally I discover that the MouseDown "EATEN" the all the left/right click can not allowing me to proceed doubleclick and rightclick.

I believe lots of you had this problem before and should have a solution to it. Can anyone help me through it?

Thanks in advance

Andy
 
This is a little app I wrote for someone a while ago to demonstrate how to do it.

Click around on the form to see what I mean. I am sure you could edit this to work for your purposes.

HTH,
Orbity
 
Firstly, Thanks.

But would you mind to copy and paste the source code here becasue Im atually using VB.NET.

By looking at the code, I guess I will know what I should do. :)

Andy
 
It probably wont help, since the methods of doing this are quite different in the two languages. I havent tried any drag and drop stuff in .NET yet.
 
Back
Top