Use a Public Property to Assign its Value to Several Controls

Category:
Forms and Controls
Type:
Snippets
Difficulty:
Beginning
Author:
Patrick Lockefeer

Version Compatibility: Visual Basic 6

More information:
With this code you don't need to use a Control array to update mutiple Textboxes. The Name property of the Textboxes is not relevant since you loop through the Controls collection of the Me keyword.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: