Hi Steven,
I did not check if the methode you use works, it is unusual but why not.
> Private Sub cmdReset_Click(ByVal sender As System.Object,
> ByVal e As System.EventArgs) _
> Handles cmdReset.Click
> Dim intX As Integer
> Dim objTextBox As TextBox
> For intX = 0 To Controls.Count - 1
I think here it has to be
For intX = 0 to Groupbox.Controls.Count - 1
> If TypeOf Controls.Item(intX) Is TextBox Then
>
> objTextBox = Controls.Item(intX)
objTextBox=Groupbox.Item(intX)
> objTextBox.Text = ""
> End If
> Next intX
>
Do I don't know if it works but I think so.
Normal is typed, maybe type errors
\\\
dim ctrl as control
For each ctrl in groupbox.controls
if typeof ctrl is textbox then
ctrtxt = directcast(ctrl, textbox)
ctrtext=""
end if
next
///
Cor
Cor
|