Last edited on
Witch way is better ?
1 2 3 4 5
|
this->Tag = gcnew IntObj(...);
...
(IntObj^)(this->Tag)->Value += 1;
|
OR
Convert::ToInt64(this->Tag) + 1;
Last edited on
I will have to write
this->Tag = gcnew Int64(...);
for every control i use.
for exapmple:
1 2 3 4
|
button->Tag = gcnew Int64(...);
button1->Tag = gcnew Int64(...);
label->Tag = gcnew Int64(...);
........
|
I could assign like this:
|
this->Tag = Convert::ToInt64(this->Tag) + 1;
|
Any other ways around?
Last edited on