A
Andreas Zita
Hi,
I have a form with two controls, one button and one textbox. At form load I
add a databinding between the text property of the textbox and a public
property MyValue of the form which gets and sets a string field. The string
is initiated with the text "default" which also is what the textbox
initially shows after the databinding has been added. When editing the
textfield (and after tabbing out) the string field is updated as it should.
However, I would also like the textbox string to change whenever the MyValue
property is set from elsewhere in the form without having to set it
manually. Shouldnt this be done automatically since I have added a
databinding between these two properties or is a databinding "one-way" only?
/Andreas
I have a form with two controls, one button and one textbox. At form load I
add a databinding between the text property of the textbox and a public
property MyValue of the form which gets and sets a string field. The string
is initiated with the text "default" which also is what the textbox
initially shows after the databinding has been added. When editing the
textfield (and after tabbing out) the string field is updated as it should.
However, I would also like the textbox string to change whenever the MyValue
property is set from elsewhere in the form without having to set it
manually. Shouldnt this be done automatically since I have added a
databinding between these two properties or is a databinding "one-way" only?
/Andreas