Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Databinding to an object
Message
From
28/09/2006 01:36:52
 
 
To
27/09/2006 17:46:37
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Object Oriented Programming
Environment versions
Environment:
VB 8.0
Miscellaneous
Thread ID:
01157683
Message ID:
01157751
Views:
20
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform