if (oForm.Controls[nCtr] is TextBox) { TextBox oText = (TextBox)oForm.Controls[nCtr]; oText.Text = "test Textbox" + nCtr.ToString().Trim(); }(Granted, it's C# code, and the question was posted as a VB.NET question)...
TextBox oText = oForm.Controls[nCtr] as TextBox
if (oText != null)
{
oText.Text = "test Textbox" + nCtr.ToString().Trim();
}
Kevin"Run, you clever boy....and remember"
https://www.youtube.com/watch?v=8U4Y2Uv8ArM
"My survival...my living proof"
https://plus.google.com/photos/117162300364810952313/albums/5876836271056272097/5876836294121419858?banner=pwa&pid=5876836294121419858&oid=117162300364810952313