OpticTygre
New member
- Joined
- Oct 22, 2008
- Messages
- 4
- Programming Experience
- 5-10
Hi all,
I have a windows form that contains a bindingsource with its datasource set to a bindable object.
I'm creating a user control with a simple label and textbox on it. I have declared a bindable property on the usercontrol using the System.ComponentModel.Bindable(True) attribute flag. This allows me to bind a property of the object on the main form to the property declared in my user control.
What I'd like to do, however, is detect the property name that was bound at design-time, and update the label1.text on my user control based on the property name.
How can I detect that the binding has changed at design-time, and proceed to get the information about the binding and update any internal controls of my user control, so they update in the designer?
Thanks for any advice anyone can provide.
-Jason
I have a windows form that contains a bindingsource with its datasource set to a bindable object.
I'm creating a user control with a simple label and textbox on it. I have declared a bindable property on the usercontrol using the System.ComponentModel.Bindable(True) attribute flag. This allows me to bind a property of the object on the main form to the property declared in my user control.
What I'd like to do, however, is detect the property name that was bound at design-time, and update the label1.text on my user control based on the property name.
How can I detect that the binding has changed at design-time, and proceed to get the information about the binding and update any internal controls of my user control, so they update in the designer?
Thanks for any advice anyone can provide.
-Jason