I have come wpf slider controls on a Visual C# form that causes an exception
I limit the slider travel by checking the slider value in the event 'slider1_ValueChanged'
if( slider1value < iLim )
slider1.value = iLim; // Exception occurs here
because the value is changed in this function it causes the function to execute again in a recursive manner causing the exception
How can I change the value with causing an exception?

VulpesRank #55 · 29.2K reputationPosted Jun 9, 2014, 6:43 AM EDT
David McCrickard10 reputationPosted Jun 9, 2014, 6:48 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jun 9, 2014, 7:31 AM EDT