Hallo Experts,
I'm Stuck on this, anyone have a idea how to solve?
Thank you !
Public Sub find_Controls(ByVal sender As Object, ByVal e As EventArgs)
Dim objControl As Control
For Each objControl In Me.mnupanel.Controls()
' I need to appy changes for all controls exept the one that is caling
If sender.parent.parent.name <> objControl.Name Then
' Need to add this : Button1.Visible = False
' in all the dynamically added controls who have the button1
' button1 is placed on panel1 inside the User Control
End If
Next
End Sub
Start Free Trial