I
IdleBrain
Hello,
I am trying to write code to clear all the textboxes on a VB.NET
windows form using:
Dim ctrl As Control
For Each ctrl In Me.Controls
'Add your code here
If TypeOf ctrl Is TextBox Then
ctr.text = ""
End If
Next
When I debug, I realized that none of the text boxes are being
recognized as they are present within tabcontrol and embedded within a
frame.
So how exactly do we find out all the controls that are present on a
tabpage and are embedded within a frame?
Any Help is appreciated.
I am trying to write code to clear all the textboxes on a VB.NET
windows form using:
Dim ctrl As Control
For Each ctrl In Me.Controls
'Add your code here
If TypeOf ctrl Is TextBox Then
ctr.text = ""
End If
Next
When I debug, I realized that none of the text boxes are being
recognized as they are present within tabcontrol and embedded within a
frame.
So how exactly do we find out all the controls that are present on a
tabpage and are embedded within a frame?
Any Help is appreciated.