Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Single mouse click fires DoubleClick Event
posted

Hello, i use VB.NET 2005 and NetAdvantage Vol2 CLR 2.0.

I use a WinGrid in my form. When i click in a row i don t do anything in my code. When I double click in a row i get some data from the selected row and i load some images in another form using multithreading. My problem is that while i m loading the images in the other form , i go back to my grid and (single) click in another row and the result is that  the DoubleClick Event of the grid is fired,

Any opinion please ? 

   

Parents
No Data
Reply
  • 20
    posted

    Did you ever get an answer to this?  I have having the exact same problem... My grid double click works, but when it repaints with the new data, a single click fires the double click.

    The interesting thing is that it is (in my case) a toggle.  If I double click, on the replaint, a single click fires the double click code.  When it repaints again, I need a double click again.  The double click fires off a messagebox - if I tell it not to continue, then I have to double click to get it to fire again.

    In my case, when you double click on an item, it goes out, looks it up, then displays it in the grid.  This usually requires a refresh of the grid as the detail for the selected item is different than was shown previously.

    Very weird.  But so far, yours is the only post I have found about it.

    JustMe2

     

Children