Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Databinding to an object
Message
De
28/09/2006 01:36:52
 
 
À
27/09/2006 17:46:37
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Programmation orienté objet
Versions des environnements
Environment:
VB 8.0
Divers
Thread ID:
01157683
Message ID:
01157751
Vues:
21
Mike,

It has to be a real property, with a get/set, not just a variable with a public modifier.

~~Bonnie


>Starting to get into OOP, and I had a question about databinding.
>
>I have an object called "wire" with a property called "Color", and I want to bind a textbox to that property.
>
>Isn't TextBox1.DataBindings.Add("Text", wire, "Color") the command I want? It doesn't seem to work, because when I change the value of wire.Color, the textbox doesn't follow.
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