I have two labels on a form
lab01_Click:
lab02.Caption = lab02.Caption + 1
Is there a way to use lab01 as a spin button ?
If I keep pressing it – then lab02.Caption should keep changing continously ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can store data in the Tag property also
eg
Update: Ok I see you want to keep it incrementing if click is depressed. The only way I can think is a nasty ‘hack’ which re-triggers a timer event.
You will need to update object names
Userform1,Label1andLabel2and may need to adjustPrivate Declare FunctiontoPrivate Declare PtrSafe Functionfor 64bitTry this in a
MODULEand this in the
USERFORM