Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get a controls parent information?
Message
De
28/08/2003 20:43:05
 
 
À
28/08/2003 20:39:20
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00823246
Message ID:
00824437
Vues:
27
Well, if you type in this.Parent. you'll see Intellisense will show BackColor as one of the available properties. Did you try this?

~~Bonnie


>I want the name of the parent object so that I can change the background color of the parent object.
>
>>OK, lemme put it this way ... what *kind* of information do you need? There are a few things you can get by examining this.Parent and there's nothing wrong with doing things that way.
>>
>>~~Bonnie
>>
>>
>>>That how you would do it in Foxpro.
>>>
>>>>Is this.Parent what you need?
>>>>
>>>>~~Bonnie
>>>>
>>>>
>>>>>I have a form with 2 panels. Each panel contains a button. When I press the button I want to display the name of the panel. I expect to use GetContainerControl to give me this information but I can't figure out how to use the function. Basically I want access to information about a controls parent.
>>>>>
>>>>>TIA
>>>>>Robert
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform