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.

Related Posts

NS Weight Release

WP-Backgrounds Lite by InoPlugs Web Design and Juwelier Schönmann 1010 Wien