Author Topic: MessageDisplayByValue Returned Value  (Read 1484 times)

Morgan

  • Newbie
  • *
  • Posts: 44
    • View Profile
MessageDisplayByValue Returned Value
« on: June 30, 2016, 01:25:26 PM »
This maybe by design but is was unexpected.
If you read the returned value (MessageDisplayByValue.Value) from ValueChanged event, the value that is returned is the value you are changing from (old value).

If you read the returned value from TextChanged event, the value that is returned is the value you are changing to (new value).
« Last Edit: June 30, 2016, 01:44:36 PM by Morgan »

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5322
    • View Profile
    • AdvancedHMI
Re: MessageDisplayByValue Returned Value
« Reply #1 on: June 30, 2016, 02:52:27 PM »
This is by design. In the event handler, you can see both new and old with e.NewValue and e.OldValue
« Last Edit: June 30, 2016, 02:55:05 PM by Archie »

Morgan

  • Newbie
  • *
  • Posts: 44
    • View Profile
Re: MessageDisplayByValue Returned Value
« Reply #2 on: June 30, 2016, 04:00:20 PM »
Sorry, I never thought about using the ValueChangedEventArgs in the ValueChanged event to get the value.