I have a textbox and a label bound to the same member via a bindingsource. I would have expected that at some point when the user changes the textbox, the label would be refreshed, yet it is not.

What am I missing here?

Recommended Answers

Call "Refresh" method. labelName.Refresh()

Jump to Post

All 2 Replies

Call "Refresh" method. labelName.Refresh()

Thanks cgeier, but that did not help. I think that binding is not really designed for that. I don't think there is a way to have the BindingSource refresh the controls in winforms. I've thought of ds.applychanges, but that "commits" the changes somehow and it assumes that your "validation session" has ended.
No big deal of course, something like that is rather excetional and can be handled at form level.
Thanks anyway for caring.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.