Why do you need to set the control caption whenever it opens?
Just set the caption in the form properties, no code needed.
If you still want to stick with code, as Guessed said, form initialize is a better option to do that.
__________________
Backup your original file before doing any modification.
|