devxlogo

Live Action Captions

Live Action Captions

When building a TextBox or Label UserControl, the Caption or Text property sometimes doesn’t work well with the standard controls, as the control’s appearance doesn’t change when you type the value into the Properties window.

To make your UserControl behave the way you want, go to the UserControl’s code window and select Procedure Attributes from the Tools menu. Find your Caption or Text property on the combo box and click on Advanced. On the Procedure ID combo box, select Text. Test it by putting an instance of your control on a form and changing the Text or Caption property at design time. The Property Let procedure will fire with each keystroke, allowing your update routine to reflect what the user has typed.

See also  Comparing different methods of testing your Infrastructure-as-Code
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist