Advertisement

05.23.2008 at 07:46AM PDT, ID: 23427766
[x]
Attachment Details

Changeing atributes on dynamically generated User controls

Asked by tru3533 in Microsoft Visual Basic.Net

Tags:

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 SubStart Free Trial
[+][-]05.23.2008 at 08:04AM PDT, ID: 21632757

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 08:15AM PDT, ID: 21632863

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 08:20AM PDT, ID: 21632920

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 08:23AM PDT, ID: 21632960

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 08:24AM PDT, ID: 21632974

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.23.2008 at 09:10AM PDT, ID: 21633399

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.NET
Sign Up Now!
Solution Provided By: Idle_Mind
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628