G
Guest
Can someone please tell me what I'm doing wrong in my code? I'm trying to
change the ENABLED property of a User Control Button using the tag property
when another User Control Button is clicked.
Dim sControls As ControlCollection = Me.Parent.Controls
Dim y As Control
For Each y In sControls
If y.Tag = "select" Then
y.Text = "test"
End If
Next
I can run the same code on other controls in the form and it runs fine; but
when I try to change this User Control Button Property it doesn't do
anything. What am I doing wrong?
change the ENABLED property of a User Control Button using the tag property
when another User Control Button is clicked.
Dim sControls As ControlCollection = Me.Parent.Controls
Dim y As Control
For Each y In sControls
If y.Tag = "select" Then
y.Text = "test"
End If
Next
I can run the same code on other controls in the form and it runs fine; but
when I try to change this User Control Button Property it doesn't do
anything. What am I doing wrong?