Hej
I have a dictionary<string, string>. Based on the dictionary the
program draws a form consisting of labels and textboxes. Every key-
value-pair resembles to a label and a textbox. The text of the labels
equals the key of the dictionary, the value is respectively the text
of the textbox.
I am trying to bind the text of the textbox to the value of the
textbox.
I tried the following approach, but my code does not compile.
textBox.DataBindings.Add("text", dict, "Value");
where dict is my dictionary.
Was is my error in reasoning? Is it not possible to bind a value to a
textbox?
I know, it would be possible using events, but I would prefer to bind
the values.
Thanks for your help
Jens