I need to remove some controls that I have added at run-time using the code shown below. The problem is that I need to remove these controls in order to create some of them again with the same name. Please, don't ask me why.
Dim EntryControls() As TextBox
Dim rc as ADODB.RecordSet
For i = 0 To rc.RecordCount - 1
Set EntryControls(i) = Me.Controls.Add("VB.Textbox", "txtCampo_" + CStr(rc("CodCampo")), frameVariables)