- Home
·
- Miscellaneous
·
- Count your Clicks and show the number of clicks on a Commandbutton
Count your Clicks and show the number of clicks on a Commandbutton
Count your Clicks and show the number of clicks on a Commandbutton
API Declarations
'Author Patrick Lockefeer
'European date : 15-08-2005
'Please see my other snippets on page 607,609,610 and this page (611)
'Controls :
'only one Commandbutton with Name : Command1
Rate Count your Clicks and show the number of clicks on a Commandbutton
(1(1 Vote))
Private Sub Command1_Click()
Static Count As Integer 'Use the static variable
Count = Count + 1
'Show counting number on the Commandbutton
Command1.Caption = Count
End Sub
Count your Clicks and show the number of clicks on a Commandbutton Comments
No comments yet — be the first to post one!
Post a Comment