well it seems I narrowed down my problem some.
I have a control which I assign a class instance to the Tag property. This
is fine.
The class also has a tag property where I store a new struct like this
class.Tag = new mystruct(1, false);
In an event I was to update the boolean member of the struct but it doesn't
take.
myclass = (MyClass)Control.Tag;
ItemInfo iteminfo = (ItemInfo)myclass.Tag;
iteminfo.selected = checkbox.checked;
If I check iteminfo.selected after the above executes it's fine but when I
check the actual myclass and drill down to the selected of the struct the
value is unchanged.
hhmmm.... I must be missing something here....
"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:OE**************@TK2MSFTNGP12.phx.gbl...
Coming from C++ I'm so used to being able to use pointers in Tag
properties that I'm a little lost.
I want to assign an instance of a class to a Tag property and be able to
change one of it's members. I need this change to take effect in the
original class instance (as it would with a pointer).
How can this be done?
Thanks