How to modify a control using its name in vb.net

To achive this we can simply use Find method of ControlCollection Class:

For each txtBoxName in draftTextBoxes
    Me.Controls.Find( txtBoxName , True)(0).Text = ShipData.DesignDraft
Next

draftTextBoxes should be a string collection, holding names of text boxes to modify.

NS Weight Release