{"id":270,"date":"2017-03-03T11:21:23","date_gmt":"2017-03-03T11:21:23","guid":{"rendered":"https:\/\/ibex.tech\/csharp\/?p=270"},"modified":"2022-02-17T06:24:14","modified_gmt":"2022-02-17T06:24:14","slug":"enter-key-calls-method","status":"publish","type":"post","link":"https:\/\/ibex.tech\/csharp\/c-sharp\/text-box\/enter-key-calls-method","title":{"rendered":"Enter key calls method"},"content":{"rendered":"<h4>\n\tPressing enter in a text box calls a method<br \/>\n<\/h4>\n<pre>\r\n<code>\r\n\tprivate void txtPingAddress_KeyDown(object sender, KeyEventArgs e)\r\n\t{\r\n\t\tif (e.KeyCode == Keys.Enter)\r\n\t\t\tbtnPing_Click(this, new EventArgs());\r\n\t}\r\n<\/code><\/pre>\n<p>\n\t&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pressing enter in a text box calls a method private void txtPingAddress_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) btnPing_Click(this, new EventArgs()); } &nbsp;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-text-box"],"_links":{"self":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":2,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"predecessor-version":[{"id":272,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/posts\/270\/revisions\/272"}],"wp:attachment":[{"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ibex.tech\/csharp\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}