{"id":18,"date":"2015-04-09T19:51:28","date_gmt":"2015-04-09T16:51:28","guid":{"rendered":"http:\/\/www.cuneytbayrak.com\/?p=18"},"modified":"2025-02-21T00:52:34","modified_gmt":"2025-02-20T21:52:34","slug":"c-textboxa-sadece-text-veri-girmek","status":"publish","type":"post","link":"http:\/\/www.cuneytbayrak.com\/?p=18","title":{"rendered":"C# textbox\u2019a sadece text veri girmek"},"content":{"rendered":"<p>Merhabalar,<\/p>\n<p>Bu g\u00fcnk\u00fc yaz\u0131mda textbox\u2019a text\u00a0veri girmenin y\u00f6ntemini sizlere anlataca\u011f\u0131m. Textbox\u2019\u0131n WF i\u00e7in KeyPress Event\u2019ine WPF i\u00e7in ise PreviewTextInput\u2019una a\u015fa\u011f\u0131daki gibi bir kod yazman\u0131z i\u015fi \u00e7\u00f6zecektir.<\/p>\n<div class=\"wp-block-codemirror-blocks code-block \">\n<pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;clike&quot;,&quot;mime&quot;:&quot;text\/x-csharp&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:true,&quot;lineWrapping&quot;:false,&quot;styleActiveLine&quot;:false,&quot;readOnly&quot;:true,&quot;align&quot;:&quot;&quot;}\">void txttipkisaltmasi_PreviewTextInput(object sender, TextCompositionEventArgs e)\r\n {\r\n if (char.IsDigit(e.Text, e.Text.Length - 1))\r\n {\r\n e.Handled = true;\r\n }\r\n }<\/pre>\n<\/div>\n<p>Kolay gele&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Merhabalar, Bu g\u00fcnk\u00fc yaz\u0131mda textbox\u2019a text\u00a0veri girmenin y\u00f6ntemini sizlere anlataca\u011f\u0131m. Textbox\u2019\u0131n WF i\u00e7in KeyPress Event\u2019ine WPF i\u00e7in ise PreviewTextInput\u2019una a\u015fa\u011f\u0131daki gibi bir kod yazman\u0131z i\u015fi \u00e7\u00f6zecektir. void txttipkisaltmasi_PreviewTextInput(object sender, TextCompositionEventArgs&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.cuneytbayrak.com\/?p=18\">Devam\u0131n\u0131 Oku<span class=\"screen-reader-text\">C# textbox\u2019a sadece text veri girmek<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":0,"footnotes":""},"categories":[3],"tags":[],"class_list":["post-18","post","type-post","status-publish","format-standard","hentry","category-c","excerpt"],"_links":{"self":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/18","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":1,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":19,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/19"}],"wp:attachment":[{"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.cuneytbayrak.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}