G
Guest
I have a textbox, which is bound to a class member:
textBoxDataServerhostname.DataBindings.Add("Text", localOptions,
"DataServerHostname");
The text can be entered by the user, or sometimes generated from code, for
example:
textBoxDataServerhostname.Text = anotherTextBox.Text;
When text is entered by the user, the class member is updated correctly;
when it's generated from code, the member is unchanged.
How do i get this to work (I want the member to change when the textbox is
changed from code)?
I have tried setting Modified = true, and setting ReadOnly = false (in the
case where the text is generated by code, the control is read only).
Thanks in advance for any help...
textBoxDataServerhostname.DataBindings.Add("Text", localOptions,
"DataServerHostname");
The text can be entered by the user, or sometimes generated from code, for
example:
textBoxDataServerhostname.Text = anotherTextBox.Text;
When text is entered by the user, the class member is updated correctly;
when it's generated from code, the member is unchanged.
How do i get this to work (I want the member to change when the textbox is
changed from code)?
I have tried setting Modified = true, and setting ReadOnly = false (in the
case where the text is generated by code, the control is read only).
Thanks in advance for any help...