There is a simple slider . He has a ValueChanged event. It is triggered when the value value changes and it doesn't matter if it changes programmatically or from the interface. I need the event to be triggered when the user drags the slider with the mouse and releases the mouse button (I hope this is) + know what value value he set, as in ValueChanged is e.NewValue . In the extreme case, track when ValueChanged changes programmatically, and when the user.

  • Why don't you just set the flag while you change the value programmatically? - VladD
  • Do you mean to set the value of the variable and check? - Max
  • Well, something like isChangingMyself = true; Value = 20; isChangingMyself = false; isChangingMyself = true; Value = 20; isChangingMyself = false; . And in the ValueChanged if (isChangingMyself) ... - VladD
  • Yes, the way working. Interestingly, it may have already been thought for us and there is an event just for these needs - Max
  • Well, I always did that. Perhaps you can look at the sender or the originalSender in the event, but I'm not sure. - VladD September

0