K
Ken Kast
I have a Form f with a TextBox tbx. An event handler invokes
MyClass.Method1 (form, tbx). Method stores form in a ListArray A1, and
{tbx, tbx.Text} (as a structure) in another ListArray A2, both private
attributes of MyClass. Later on f invokes MyClass.Method2. Method2
retrieves f from A1and tbx from A2, finds tbx in f.Controls and sets Text in
that instantiation to Text in the stored version. In MyClass.Method2 this
all seems to be working fine. But after Method2 returns to f, tbx.Text
hasn't been changed.
Can someone tell me where or how the change gets lost?
Thanks.
MyClass.Method1 (form, tbx). Method stores form in a ListArray A1, and
{tbx, tbx.Text} (as a structure) in another ListArray A2, both private
attributes of MyClass. Later on f invokes MyClass.Method2. Method2
retrieves f from A1and tbx from A2, finds tbx in f.Controls and sets Text in
that instantiation to Text in the stored version. In MyClass.Method2 this
all seems to be working fine. But after Method2 returns to f, tbx.Text
hasn't been changed.
Can someone tell me where or how the change gets lost?
Thanks.