home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.lang.visual.basic      MS Visual Basic discussions, NOT dot-net      10,840 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 9,621 of 10,840   
   Raoul Watson to MFC   
   Re: Trouble with Click and DblClick   
   19 Jul 05 23:10:58   
   
   From: WatsonR@IntelligenCIA.com   
      
   "MFC"  wrote in message   
   news:42dcfc79$0$23503$edfadb0f@dread16.news.tele.dk...   
   > Hi   
   >   
   > I'm from Denmark so I hope you understand my English. Well, I have a   
   filebox   
   > and when I click on a picture-file, then I have a small picturebox, where   
   I   
   > can preview the file. When I double-click on a file, then should the   
   program   
   > load the file to a editor, but no matter how fast I double-click, then the   
   > filebox assume it's a single click. How can I use the Click and the   
   DblClick   
   > with the filebox control ??    I hope someone is able to help me and   
   thanks   
   > for reading my post.   
   >   
      
   Well, the single click will always be executed, which is OK because if the   
   intent of the user is double click, first it will execute the single click   
   (which according to you shows a "preview / thumb" image) and then if the   
   user continues, it will load the file.   
      
   Using the example below, you will see that the *FINAL* result is what is   
   intended.   
      
   Private Sub File1_Click()   
   Label1.Caption = "Single"   
   End Sub   
      
   Private Sub File1_DblClick()   
   Label1.Caption = "Double"   
   End Sub   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca