{"id":5764,"date":"2014-04-06T20:17:29","date_gmt":"2014-04-06T20:17:29","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/06\/how-to-capture-the-value-change-of-numericupdown-ctrl-real-time-in-net-collection-of-common-programming-errors\/"},"modified":"2014-04-06T20:17:29","modified_gmt":"2014-04-06T20:17:29","slug":"how-to-capture-the-value-change-of-numericupdown-ctrl-real-time-in-net-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/06\/how-to-capture-the-value-change-of-numericupdown-ctrl-real-time-in-net-collection-of-common-programming-errors\/","title":{"rendered":"How to capture the value change of numericUpDown ctrl real-time in .NET?-Collection of common programming errors"},"content":{"rendered":"<p>I have implement the <strong>ValueChanged<\/strong> event, but I found it will be triggered only after change the focus from numericUpDown to other control or by clicking the up\/down arrow.<\/p>\n<p>Inputting the value in the control will not trigger <strong>ValueChanged<\/strong> event.<\/p>\n<p>What I did now is adding an <strong>KeyDown<\/strong> event and judge if the input value is numeric (can not include SHIFT\/CTRL\/ALT key); but there is another case need to be involved: the user can paste value into the numericUpDown ctrl<\/p>\n<p><em><strong>What I need is :<\/strong><\/em><\/p>\n<ol>\n<li>When I was typing numeric value (only numeric) in the numericUpDown ctrl, it will known the content has been changed;<\/li>\n<li>When pasted a numeric value into the ctrl, it also kowns the content changed<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>I have implement the ValueChanged event, but I found it will be triggered only after change the focus from numericUpDown to other control or by clicking the up\/down arrow. Inputting the value in the control will not trigger ValueChanged event. What I did now is adding an KeyDown event and judge if the input value [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5764","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5764","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5764"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5764\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5764"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5764"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5764"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}