 |
| Main Menu
|
 |
| Who's online?
|
 |
| | | | | | | | | | | Online | | Members: | 0 | | Guests: | 2 | | Total: | 2 |
| | | | | Online Members | | No Online members |
|
|
| Yahoo Top News
|
 |
| Yahoo Technology News
|
 |
| Computer World Career News
|
 |
|
 |
[Access Forum]
|
 |
 |
|
|
|
 |
| |
Data Binding a Control’s Property to a Property From a Custom Class In VB.Net
Introduction
Have you ever wanted to bind a property from a single instance of your custom
class to the text property of a textbox, so that when the property is changed
in the object, it is automatically reflected in the textbox -- and vice versa?
Although the specific steps for doing this may not be found in the help file (I
couldn’t find it), it’s not hard to do. Read on to see how it’s done, and download
the attached sample to see a working solution. The attached project also shows
how to use the BindingManagerBase to force the changes in a textbox to take effect
faster than would otherwise happen (typically not necessary, but knowing this
can come in handy when needed).
Note:
This FAQ and the attached sample deals specifically with how to bind the text
property of a textbox to a property of a class, however, you can use the same
technique to bind to other properties of the textbox, or to bind to properties
on other controls, or to do both at the same time.
|
|
|
|
|
|
| |
Posted by: Nino Priore on Tuesday, October 19, 2004
|
|
|
|
 |
 |
 |
|
 |
 |
|
|
 |
| Search this website
|
 |
| Current Articles
|
 |
| Past Articles
|
 |
- Thursday, July 15
- Search Engine Optimizing PHP Scripts (0)
- Wednesday, July 07
- The Overloads, Overrides, And Shadows Keywords In VB.Net (Part 2) (0)
- Monday, June 28
- The Overloads, Overrides, And Shadows Keywords In VB.Net (Part 1) (0)
- Thursday, June 10
- The Priore Progress Bar Control (0)
- Wednesday, June 09
- How To Store Multiple Values Together In One Variable By Using A Bit Mask In VB.Net (0)
- Monday, June 07
- The Priore Message Box (0)
- Friday, June 04
- Calling A Control By It's Name Instead Of It's Index In VB.NET (0)
- Using The Mouse To Move A Borderless Form Without The API Or Overriding WndProc (0)
- Thursday, June 03
- Detecting Mouse Events on Lines Drawn in VB.Net (0)
- Using GDI+ to Add Multi-line Items With Images to a Combo Box (0)
Older articles
|
| Categories Menu
|
 |
| PHPBuilder.com Articles
|
 |
| CNET Technology News
|
 |
|
 |