You would use an if statement to see if the value of the variable matches
your criteria, and only then do something.
If you are looking for anything more specific, it's impossible to say. Your
question was quite vague.
"Peter Styk" <il***@dobrebopolskie.NoNoNo.com> wrote in message
news:em**************@TK2MSFTNGP14.phx.gbl...
Ok, but how exactly would you do that in C#?
"Marina" <so*****@nospam.com> wrote in message
news:e8**************@TK2MSFTNGP10.phx.gbl... No, the handler will always fire. But inside, you can look at the value
and just do nothing if the value is not acceptable.
"Peter Styk" <il***@dobrebopolskie.NoNoNo.com> wrote in message
news:ez**************@TK2MSFTNGP10.phx.gbl... Hi,
Is there a way to create an event handler on variable and watch for a
specified value to occour?
Let's say i want a method executed when value of x = 10 and x=15
Thanks