Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I copy an object while a program is running?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Is there any way possible which I can copy a label as a program is running. For instance what I would like is for a label to start with the number one, and every time I click, the program will copy the previous label and change the caption (to the number 2, 3, 4,...)depending on the number of times i have clicked. Is this possible?
Thank you,
AJ
 
Use A Global String Variable for label renamings
Trap MouseDown event on form to trap ur clicks by incrementing the above variable each time. Assign the label this Variable each time in this event
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top