M
Michael
I have a simple situation, where I have a textbox (myTextBox) which
represents the value of say an integer (myInt). Now, whenever I change the
value of myTextBox, I would like myInt to be updated. I was wondering what
the best approach to do this would be, without having to explicitly write
code such as:
myInt = (int)myTextBox.Text
This may be trivial for one such case, but when I have like 40 text boxes, I
don't want 40 lines of code similar to the line above (plus another 40 in
other direction, populated the text box).
So if anyone knows of a tricky way to do this using Tag's or something, or
just the most common practice, it would be much appreciated.
Thanks,
Michael
represents the value of say an integer (myInt). Now, whenever I change the
value of myTextBox, I would like myInt to be updated. I was wondering what
the best approach to do this would be, without having to explicitly write
code such as:
myInt = (int)myTextBox.Text
This may be trivial for one such case, but when I have like 40 text boxes, I
don't want 40 lines of code similar to the line above (plus another 40 in
other direction, populated the text box).
So if anyone knows of a tricky way to do this using Tag's or something, or
just the most common practice, it would be much appreciated.
Thanks,
Michael