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,253 of 10,840   
   Martin to All   
   Re: Repeat Question   
   05 Mar 05 11:54:25   
   
   From: cadoss@btconnect.com   
      
   I tried out the advice given and came up with this as an example:-   
      
   Add a timer to your form (say Timer1) add a command button to the form (say   
   Button1) - Set its Enabled Property to False - Set its Interval Property to   
   100.   
      
   Then:-   
      
   Private Sub command1_MouseDown(button As Integer, shift As Integer, x As   
   Single, y As Single)   
       timer1_timer   
       Timer1.Enabled = True   
   End Sub   
      
   Sub timer1_timer()   
       Print "In"   
   End Sub   
      
   Private Sub command1_Mouseup(button As Integer, shift As Integer, x As   
   Single, y As Single)   
       Timer1.Enabled = False   
       Print "Out"   
   End Sub   
      
   Thanks Group   
      
   Martin   
      
   "Stephen Saunders"  wrote in message   
   news:w3XVd.879$603.72@newsread2.news.atl.earthlink.net...   
   > Hello,   
   >   
   > I am new to this news group.  Please forgive me if this has been asked   
   > before.   
   >   
   > In my VB application, I have next and previous command buttons.  I would   
   > like to be able to hold the left mouse button down on these buttons and   
   have   
   > the operation repeat.  Is this a property?   
   >   
   > adTHANKSvance,   
   >   
   > Stephen Saunders   
   >   
   >   
      
   --- 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