I'm experiencing a problem with a spin control associated with an editbox. It's supposed to act normally (increment or decrement the value by one) unless a certain condition is met, when it should add an additional 2 to the value. Eg. if the lower range was 8 and I would increment it, it would increase normally like 8, 9, 10.. but if this condition is met, it should be - in the same situation - 10, 11, 12.. Erm, if you don't understand what I'm going for, feel free to ask and I will try and explain more.
My program checks for this certain condition in the editbox's change event, and it looks somewhat like this (I can't view the code right now):
and the problem is that when the condition is met and that event launches, the fact that I've to update the editbox causes the change event to launch again. This goes on until the spin reaches its maximum value which produces an error and ends the circle. And obviously that's not my purpose ;(
int nCheck = GetCondition();
if (nCheck == CERTAIN_CONDITION)
// increase the current value by additional 2 points and update the editbox
// default code
Any help is appreciated. I'm probably doing something wrong, lol